how to wait in c++ code example
Example: c++ wait
#include <iostream> //for using cout
#include <Windows.h> //for using the function Sleep
using namespace std; //for using cout
int main(void)
{
cout << "test" << endl;
Sleep(5000); //make the programme waiting for 5 seconds
cout << "test" << endl;
Sleep(2000); // wait for 2 seconds before closing
return 0;
}