Can you tell me a function in a program comment it. not delay();.anything else than delay() to wait for a few milliseconds or seconds?
Can you tell me a function in a program comment it. not delay();.anything else than delay() to wait for a few milliseconds or seconds?
There's Microsoft C source code for a delay function, or you could write an empty loop that repeated itself hundreds of times. This solution however, would vary grealty from PC to PC.
What operating system and compiler are you using?
#inculde <stdlib.h>
int main(void)
{
// do what ever
sleep(100); // sometimes _sleep(), where the arguement is the ammount of time in milliseconds to wait(sleep).
// do something else
return 0;
}
ADVISORY: This users posts are rated CP-MA, for Mature Audiences only.
assuming you are using a console in a windows environment then....
#include <windows.h>
Sleep(x); // where x is the number of millisecs minimum you wish to pause for. Notice the capital S. remember that c++ is case sensitive.
Free the weed!! Class B to class C is not good enough!!
And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi