Just wanted to know how you could make a program sleep. Please give some example code.
ex:
video intro to consol app. (scrolling word art)
thanks
Printable View
Just wanted to know how you could make a program sleep. Please give some example code.
ex:
video intro to consol app. (scrolling word art)
thanks
Include windows.h in your .cpp
Then when you want to sleep use:Code:#include <windows.h>
Note that the parameter is in miliseconds!Code:Sleep(500);
There's an FAQ on the subject: http://faq.cprogramming.com/cgi-bin/...&id=1043284392