C Board  

Go Back   C Board > General Programming Boards > C++ Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 01-11-2002, 10:58 PM   #1
Registered User
 
Join Date: Jan 2002
Posts: 69
Problem with compiler

I can't seem to work the function delay(); with devc++ it's just i do delay(500); but it says i need to define int delay() and it still doesn't work can you write out a program that might work?
knight543 is offline   Reply With Quote
Old 01-11-2002, 11:11 PM   #2
Registered User
 
Join Date: Nov 2001
Posts: 162
I use Dev-C++ and I have never heard of the function delay. I searched the include files and I didn't find it either, so Dev-C++ must not come with the delay function. Since it can't find it in a header file, it tells you that you need to define it. For something similar to delay use Sleep() defined in winbase.h, but you can just include windows.h for convenience.
Crossbow is offline   Reply With Quote
Old 02-09-2002, 02:08 PM   #3
Registered User
 
Join Date: Feb 2002
Posts: 32
<iostream.h>

i cant seem to get #include <iostream.h> to work on dev-c++
helbovine is offline   Reply With Quote
Old 02-09-2002, 03:20 PM   #4
Unregistered
Guest
 
Posts: n/a
I have dev c++, iostream.h works just fine.
  Reply With Quote
Old 02-09-2002, 09:16 PM   #5
Intranasal Heroin User
 
Xterria's Avatar
 
Join Date: Sep 2001
Location: Buffalo, NY
Posts: 1,033
to knight:
Dev-C++ is a windows compiler, and delay() is normally defined in a dos compiler in dos.h. Though Dev-C++ has dos.h, it's a windows version of it.
Xterria is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiler problem xixpsychoxix C++ Programming 5 01-17-2009 12:46 PM
Dev-C++ compiler problem GrasshopperEsq C++ Programming 19 05-08-2008 02:35 AM
Compiler Problem sitestem C++ Programming 2 04-11-2004 03:48 PM
C / OpenGL help REALLY needed for simple but annoying problem! Oz_joker C Programming 5 12-03-2003 05:47 PM
Please help me with this compiler problem incognito C++ Programming 1 01-05-2002 05:14 PM


All times are GMT -6. The time now is 06:06 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC2

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22