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
I'm addicted to TRANCE...
 
Xterria's Avatar
 
Join Date: Sep 2001
Posts: 1,019
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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -6. The time now is 03:49 PM.


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