|
-
April 19th, 1999, 09:51 AM
#1
sleep() URGENT!!!!!!!
i need help!!! i wan the dots to appear one by one. but i got errors. 'sleep' is not a member of 'global namespace' and 'sleep' is undeclared identifier.
#include <stdio.h>
main()
{
int counter;
for(counter=0;counter<10;counter++)
{
printf(".\n");
sleep(?????);
}
return 0;
}
-
April 19th, 1999, 10:03 AM
#2
Re: sleep() URGENT!!!!!!!
Try
#include <winbase.h>
...
Sleep(1000);
HTH
Markus
-
April 19th, 1999, 10:57 AM
#3
Re: sleep() URGENT!!!!!!!
Hi,
you didn't mention which operating system and platform you tried this.
In Turbo C++, I think you should use Delay(...); instead of sleep();
In Windows,and VC++, you try with Sleep(..); // Capital 'S'
Include the header file "Winbase.h" also.
thanks
-
April 20th, 1999, 09:31 AM
#4
Re: sleep() URGENT!!!!!!!
Use delay(); instead of sleep....
SleepEx or Sleep is for the Windows application
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|