Two functions of dos.h, delay and sleep suspend the execution of the program for a specified time interval.
void delay(unsigned milliseconds);
void sleep(unsigned seconds);
Compiler : Turbo C++ v3.01
Two functions of dos.h, delay and sleep suspend the execution of the program for a specified time interval.
void delay(unsigned milliseconds);
void sleep(unsigned seconds);
Compiler : Turbo C++ v3.01
Actually, the Sleep() function works in milliseconds and the S has to be uppercase.Originally posted by Shadow
Leave the sleep function alone.
When you call sleep, do it like so.
printf("Hello\n");
sleep(3);
That's all
Please don't grave dig.
Moerators?
cout<<"Hi all!";
Sleep(3000);
That would stop it for 3 secs.
SoKrA-BTS "Judge not the program I made, but the one I've yet to code"
I say what I say, I mean what I mean.
IDE: emacs + make + gcc and proud of it.
Actually that was his own sleep function he wroteOriginally posted by -=SoKrA=-
Actually, the Sleep() function works in milliseconds and the S has to be uppercase.
cout<<"Hi all!";
Sleep(3000);
That would stop it for 3 secs.
Not the one in windows.h
Read the start of this thread to see.