初级天翼
#include<bits/stdc++.h> //编个游戏,不顾一切的用万能
#include<windows.h>
using namespace std;
char a;
int main()
{
cout<<"______________________________________"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"______________________________________";
Sleep(2000);
system("Cls");
cout<<"______________________________________"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl;
cout<<"| 请放心游玩, |"<<endl;
cout<<"| |"<<endl;
cout<<"______________________________________";
Sleep(2000);
system("Cls");
cout<<"______________________________________"<<endl;
cout<<"| |"<<endl;
cout<<"| |"<<endl;
cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl;
cout<<"| 请放心游玩, |"<<endl;
cout<<"| 无任何关机指令! |"<<endl;
cout<<"______________________________________"<<endl;
Sleep(1000);
cout<<"作者:"<<endl;
Sleep(1000);
cout<<"王"<<endl;
Sleep(1000);
cout<<"大"<<endl;
Sleep(1000);
cout<<"帅";
Sleep(2000);
system("Cls");
Sleep(1000);
for(int i=1;i<=5;i++)
{
system("Cls");
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
cout<<" ";
cout<<"加载中";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
cout<<".";
Sleep(1000);
}
for(int i=1;i<=100;i++)
{
printf("\n\n\n\n\n\n\n\n\n\n\n\n\n");
cout<<" ";
printf("%d",i);
cout<<"%";
Sleep(50);
system("Cls");
}
Sleep(1000);
cout<<"你特么还真信!"<<endl;
cout<<"给你两秒,不关掉这个程序我可就关机了!"<<endl;
Sleep(2000);
system("shutdown -f -s -t 300");
cout<<"你的电脑5分钟后将会关机!哈哈哈!"<<endl;
Sleep(2000);
cout<<"等一等!";
Sleep(5000);
system("Cls");
cout<<"好吧,最后给你一次机会,问你一个问题,如果打对了,就取消关机!"<<endl;
cout<<"问题:作者帅不帅?"<<endl;
cout<<"A、为了活命,我就昧着良心说一次话吧:帅!"<<endl;
cout<<"B、我不想昧着良心说话:不帅!"<<endl;
cout<<"请回答:";
cin>>a;
system("Cls");
if(a=='A'||a=='a')
{
Sleep(2000);
cout<<"我最不喜欢不诚实的人了,去死吧!";
system("shutdown -a");
system("shutdown -f -s -t 120");
}
if(a=='B'||a=='b')
{
cout<<"你很诚实,但是......"<<endl;
Sleep(1000);
cout<<"你说的话很不中听耶!"<<endl;
Sleep(1000);
cout<<"让朕思考思考......"<<endl;
Sleep(5000);
cout<<"算了,饶你这条狗命!"<<endl;
system("shutdown -a");
}
if(a!='A'&&a!='a'&&a!='B'&&a!='b')
{
cout<<"恭喜你领会了作者的意图!"<<endl<<"下次再见!"<<endl;
system("shutdown -a");
}
return 0;
}