does C++ has this function header for this :
sleep()?
I really need help
Printable View
does C++ has this function header for this :
sleep()?
I really need help
I'm on Unix , and if I include < unistd.h >
i can use sleep(int) where int is how many seconds to sleep.
Its <windows.h>, and make sure you spell it Sleep(int), note the Uppercase S, and this has been posted before.
Code:#include <windows.h>
void Sleep
(
DWORD dwMilliseconds
);
int main()
{
sleep(int);
}
thank you so much
I see someone uses it , but mis-spelling, then it doesn't work.
one more question,
is there a delay() for function header and gotoxy(int,int)?
i have a headage homework.. newbee though,
that I have to write a c++ program to scroll a user input message accross screen (like java does), and make it blinking..
It is fun and does headage after all, then I need to find resource and help.
If you use DEV-C++ to compile clrscr(); will help to make it flash, use conio.c. But if you use MSVC++ use cout << endl; just before using SYSTEM("CLS"); as it clears the buffer. Windows.h for this one. Should help you with most of it. Then you just have to place it in an appropriate loop.