Is there any command that makes the program stop for a few seconds and then move on again?
Is there any command that makes the program stop for a few seconds and then move on again?
Very dependant on operating system and compiler.
For msvc and windows....
#include <windows.h>
Sleep(1000); // will pause for a minimum of 1 second. number is millisecs. notice the S not s
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
I dont have windows.h
Header files are copyrighted right?
If thats not the case can somebody please email me windows.h
My email is: [email protected]
>>> If thats not the case can somebody please email me windows.h
Pointless...
http://www.cprogramming.com/boardfaq.html#header
... your own OS will have a similar function, (might be sleep(), wait() etc.).
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
id u use borlans then include <dos.h> and use
delay(time);
where time is = integer in miliseconds
sleep() is also in dos.h
this is for borland ver3
sleep(1); //sleeps for 1 sec
Last edited by ihsir; 02-25-2002 at 05:03 AM.
-