How can I pause a program for a specific number number of seconds? I'm using MS Visual C 6.0.
Thanks.
How can I pause a program for a specific number number of seconds? I'm using MS Visual C 6.0.
Thanks.
Sleep() as defined in windows.h
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Include "windows.h" and use "Sleep()" - the Sleep function takes number of milliseconds, so you need to say "Sleep(1000)" to sleep for one second.
--
Mats
Compilers can produce warnings - make the compiler programmers happy: Use them!
Please don't PM me for help - and no, I don't do help over instant messengers.
At first it wouldn't work, but then I realized I was typing sleep instead of Sleep.
Thanks for the help!