标签:cout 王者 int 荣耀 char 110 include Cls
1 #include<bits/stdc++.h> //编个游戏,不顾一切的用万能 2 #include<windows.h> 3 using namespace std; 4 char a; 5 int main() 6 { 7 cout<<"______________________________________"<<endl; 8 cout<<"| |"<<endl; 9 cout<<"| |"<<endl; 10 cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl; 11 cout<<"| |"<<endl; 12 cout<<"| |"<<endl; 13 cout<<"______________________________________"; 14 Sleep(2000); 15 system("Cls"); 16 cout<<"______________________________________"<<endl; 17 cout<<"| |"<<endl; 18 cout<<"| |"<<endl; 19 cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl; 20 cout<<"| 请放心游玩, |"<<endl; 21 cout<<"| |"<<endl; 22 cout<<"______________________________________"; 23 Sleep(2000); 24 system("Cls"); 25 cout<<"______________________________________"<<endl; 26 cout<<"| |"<<endl; 27 cout<<"| |"<<endl; 28 cout<<"| 欢迎来到王者荣耀小游戏 |"<<endl; 29 cout<<"| 请放心游玩, |"<<endl; 30 cout<<"| 无任何关机指令! |"<<endl; 31 cout<<"______________________________________"<<endl; 32 Sleep(1000); 33 cout<<"作者:"<<endl; 34 Sleep(1000); 35 cout<<"杨"<<endl; 36 Sleep(1000); 37 cout<<"鹏"<<endl; 38 Sleep(1000); 39 cout<<"辉"; 40 Sleep(2000); 41 system("Cls"); 42 Sleep(1000); 43 for(int i=1;i<=5;i++) 44 { 45 system("Cls"); 46 cout<<" "<<endl; 47 cout<<" "<<endl; 48 cout<<" "<<endl; 49 cout<<" "<<endl; 50 cout<<" "<<endl; 51 cout<<" "<<endl; 52 cout<<" "<<endl; 53 cout<<" "<<endl; 54 cout<<" "<<endl; 55 cout<<" "<<endl; 56 cout<<" "<<endl; 57 cout<<" "<<endl; 58 cout<<" "<<endl; 59 cout<<" "; 60 cout<<"加载中"; 61 Sleep(1000); 62 cout<<"."; 63 Sleep(1000); 64 cout<<"."; 65 Sleep(1000); 66 cout<<"."; 67 Sleep(1000); 68 } 69 for(int i=1;i<=100;i++) 70 { 71 cout<<" "<<endl; 72 cout<<" "<<endl; 73 cout<<" "<<endl; 74 cout<<" "<<endl; 75 cout<<" "<<endl; 76 cout<<" "<<endl; 77 cout<<" "<<endl; 78 cout<<" "<<endl; 79 cout<<" "<<endl; 80 cout<<" "<<endl; 81 cout<<" "<<endl; 82 cout<<" "<<endl; 83 cout<<" "<<endl; 84 cout<<" "; 85 printf("%d",i); 86 cout<<"%"; 87 Sleep(50); 88 system("Cls"); 89 } 90 Sleep(1000); 91 cout<<"你特么还真信!"<<endl; 92 cout<<"给你两秒,不关掉这个程序我可就关机了!"<<endl; 93 Sleep(2000); 94 system("shutdown -f -s -t 300"); 95 cout<<"你的电脑5分钟后将会关机!哈哈哈!"<<endl; 96 Sleep(2000); 97 cout<<"等一等!"; 98 Sleep(5000); 99 system("Cls"); 100 cout<<"好吧,最后给你一次机会,问你一个问题,如果打对了,就取消关机!"<<endl; 101 cout<<"问题:作者帅不帅?"<<endl; 102 cout<<"A、为了活命,我就昧着良心说一次话吧:帅!"<<endl; 103 cout<<"B、我不想昧着良心说话:不帅!"<<endl; 104 cout<<"请回答:"; 105 cin>>a; 106 system("Cls"); 107 if(a=='A'||a=='a') 108 { 109 Sleep(2000); 110 cout<<"我最不喜欢不诚实的人了,去死吧!"; 111 system("shutdown -a"); 112 system("shutdown -f -s -t 120"); 113 } 114 if(a=='B'||a=='b') 115 { 116 cout<<"你很诚实,但是......"<<endl; 117 Sleep(1000); 118 cout<<"你说的话很不中听耶!"<<endl; 119 Sleep(1000); 120 cout<<"让朕思考思考......"<<endl; 121 Sleep(5000); 122 cout<<"算了,饶你这条狗命!"<<endl; 123 system("shutdown -a"); 124 } 125 if(a!='A'&&a!='a'&&a!='B'&&a!='b') 126 { 127 cout<<"恭喜你领会了作者的意图!"<<endl<<"下次再见!"<<endl; 128 system("shutdown -a"); 129 } 130 return 0; 131 }
标签:cout,王者,int,荣耀,char,110,include,Cls 来源: https://www.cnblogs.com/ypha/p/14123716.html
本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享; 2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关; 3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关; 4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除; 5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。