#include<iostream>
// Library effective with Windows
#include<windows.h>
// Library effective with Linux
#include<unistd.h>
using namespace std;
// Driver code
int main()
{
cout << "Join the Line:\n";
cout << "Wait for 5 seconds\n";
sleep(5);
cout << "It's your time buy ticket";
}
运行结果为:
Join the Line:
Wait for 5 seconds
It's your time buy ticket