Depends on the system.
:
#include <iostream>
#ifdef WIN32
#include <windows.h>
#define sleep(n) Sleep((n)*1000)
#else
#include <unistd.h>
#endif
using namespace std;
int main()
{
cout << "This is line 1";
sleep(4);
cout << endl;
cout << "This is line 2" << endl;
return 0;
}
, , This is line 1
, 4 , This is line 2
.
Visual Studio Windows, .
Linux Unix 4 , . , .