how to delay in c++ code example
Example: delay c++
//in Win32
#include<windows.h>
Sleep(milliseconds);
//in Unix
#include<unistd.h>
unsigned int microsecond = 1000000;
usleep(3 * microsecond); //sleeps for 3 seconds
sleep(3);
//in Win32
#include<windows.h>
Sleep(milliseconds);
//in Unix
#include<unistd.h>
unsigned int microsecond = 1000000;
usleep(3 * microsecond); //sleeps for 3 seconds
sleep(3);