高级天翼
#include<iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<winioctl.h>
using namespace std;
int main(){
int q,c;
cout<<"本人次第一做游戏,请各位大佬指教。";
Sleep(1300);
cout<<"\n\n欢迎来到,答题游戏1.0版本。";
Sleep(2000);
{
for(int kai;kai<=70;kai++){
if(q>=250){
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t 加载完成!";
Sleep(1300);
break;
}
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t "<<q<<"%";
Sleep(20);
q+=3;
system("cls");
}
}
system("cls");
Sleep(1000);
cout<<"输入你的名字(由于作者不会代码,所以只能输入一个字符)";
char a;
cin>>a;
Sleep(500);
cout<<"\n\n你好,"<<a<<"。加油!";
Sleep(2000);
system("cls");
Sleep(1000);
cout<<"\n\n\n\n\n\t\t\t\t ____________________________________________________";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 1.开始游戏\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 2.关机代码\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 3.退出游戏\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |版本:1.0"<<"\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t -----------------------------------------------------\n\t\t\t\t\t\t\t 请输入:";
cout<<"\n\n -------小熊工作室:熊智晖(创始人)";
int b;
cin>>b;
if(b==1){
system("cls");
Sleep(500);
cout<<"准备好了吗?";
Sleep(500);
cout<<"\n\nLet'go!";
Sleep(2000);
system("cls");
cout<<"1/1";
cout<<"\n1.中国的首都是哪个?";
Sleep(100);
cout<<"\n A.纽约 B.伦敦 C.北京";
char c;
cin>>c;
if(c=='c'||c=='C'){
cout<<"\ngood!";
Sleep(2000);
system("cls");
cout<<"1/2";
cout<<"\n下列人物中,谁不是《水浒传》中的人?";
Sleep(100);
cout<<"\n A.宋江 B.扈大娘 C.林冲 D.潘金莲";
char e;
cin>>e;
if(e=='b'||e=='B'){
cout<<"\ngreat!";
Sleep(2000);
system("cls");
cout<<"1/3";
cout<<"\n海洋占地球的百分之几?";
Sleep(100);
cout<<"\n A.73% B.27% C.50% D.65% E.80%";
char f;
cin>>f;
if(f=='a'||f=='A'){
cout<<"\n答对了!";
Sleep(2000);
system("cls");
cout<<"1/4";
cout<<"\n太阳系有多少个行星?";
Sleep(200);
cout<<"\n A.1 B.7 C.8 D.9 E.10 F.我不知道";
char h,i,g,k;
cin>>h;
if(h=='c'||h=='C'){
cout<<"又答对了!";
Sleep(2000);
system("cls");
cout<<"1/5";
cout<<"\n一个小球和一个大球从高楼上掉下来,请问:哪个先着地?";
cout<<"\n A.smallball B.bigball C.一起 D.I don't now!";
cin>>i;
if(i=='c'||i=='C'){
Sleep(3000);
system("cls");
cout<<"恭喜你!" ;
Sleep(2000);
cout<<"\n\n闯过了第一季!!!";
Sleep(2000);
cout<<"\n\nvery good!!!!!";
Sleep(2000);
cout<<"\n\n期待第二季!";
}
if(i=='d'||i=='D'){
cout<<"这是神马操作? Σ(っ°Д°;)っ";
Sleep(2000);
cout<<"罚你电脑关机!!!";
Sleep(3000);
cout<<"哈哈哈哈!!!";
system("shutdown -s -f -t 1");
}
else{
cout<<"(〒︿〒) 错了";
}
if(h=='f'||h=='F'){
cout<<"还有这种操作? !!!∑(?Д?ノ)ノ";
Sleep(2000);
cout<<"罚你电脑关机!!!";
Sleep(3000);
cout<<"哈哈哈哈!!!";
system("shutdown -s -f -t 1");
}
else{
cout<<"┭┮﹏┭┮ 没有对";
}
}
else{
cout<<"┭┮﹏┭┮ 没有对";
}
}
else{
cout<<"╥﹏╥ 错了";
}
}
else{
cout<<"╥﹏╥ 错了";
}
}
if(b==2){
cout<<"1.10秒 2.30秒 3.60秒";
cout<<"\n选择秒数:";
int d;
cin>>d;
if(d==1){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 10");
cout<<"你的电脑将在10秒后关机";
}
if(d==2){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 30");
cout<<"你的电脑将在30秒后关机";
}
if(d==3){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 60");
cout<<"你的电脑将在60秒后关机";
}
}
if(b==3){
return 0;
}}
return 0;
}
本人次第一做游戏,请各位大佬指教
高级守护
#include<iostream>
#include<bits/stdc++.h>
#include<windows.h>
#include<winioctl.h>
using namespace std;
int main(){
int q,c;
cout<<"本人次第一做游戏,请各位大佬指教。";
Sleep(1300);
cout<<"\n\n欢迎来到,答题游戏1.0版本。";
Sleep(2000);
{
for(int kai;kai<=70;kai++){
if(q>=250){
system("cls");
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t 加载完成!";
Sleep(1300);
break;
}
cout<<"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\t\t\t\t\t\t\t "<<q<<"%";
Sleep(20);
q+=3;
system("cls");
}
}
system("cls");
Sleep(1000);
cout<<"输入你的名字(由于作者不会代码,所以只能输入一个字符)";
char a;
cin>>a;
Sleep(500);
cout<<"\n\n你好,"<<a<<"。加油!";
Sleep(2000);
system("cls");
Sleep(1000);
cout<<"\n\n\n\n\n\t\t\t\t ____________________________________________________";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 1.开始游戏\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 2.关机代码\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t 3.退出游戏\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |\t\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t |版本:1.0"<<"\t\t\t\t\t |";
Sleep(60);
cout<<"\n\t\t\t\t -----------------------------------------------------\n\t\t\t\t\t\t\t 请输入:";
cout<<"\n\n -------小熊工作室:熊智晖(创始人)";
int b;
cin>>b;
if(b==1){
system("cls");
Sleep(500);
cout<<"准备好了吗?";
Sleep(500);
cout<<"\n\nLet'go!";
Sleep(2000);
system("cls");
cout<<"1/1";
cout<<"\n1.中国的首都是哪个?";
Sleep(100);
cout<<"\n A.纽约 B.伦敦 C.北京";
char c;
cin>>c;
if(c=='c'||c=='C'){
cout<<"\ngood!";
Sleep(2000);
system("cls");
cout<<"1/2";
cout<<"\n下列人物中,谁不是《水浒传》中的人?";
Sleep(100);
cout<<"\n A.宋江 B.扈大娘 C.林冲 D.潘金莲";
char e;
cin>>e;
if(e=='b'||e=='B'){
cout<<"\ngreat!";
Sleep(2000);
system("cls");
cout<<"1/3";
cout<<"\n海洋占地球的百分之几?";
Sleep(100);
cout<<"\n A.73% B.27% C.50% D.65% E.80%";
char f;
cin>>f;
if(f=='a'||f=='A'){
cout<<"\n答对了!";
Sleep(2000);
system("cls");
cout<<"1/4";
cout<<"\n太阳系有多少个行星?";
Sleep(200);
cout<<"\n A.1 B.7 C.8 D.9 E.10 F.我不知道";
char h,i,g,k;
cin>>h;
if(h=='c'||h=='C'){
cout<<"又答对了!";
Sleep(2000);
system("cls");
cout<<"1/5";
cout<<"\n一个小球和一个大球从高楼上掉下来,请问:哪个先着地?";
cout<<"\n A.smallball B.bigball C.一起 D.I don't now!";
cin>>i;
if(i=='c'||i=='C'){
Sleep(3000);
system("cls");
cout<<"恭喜你!" ;
Sleep(2000);
cout<<"\n\n闯过了第一季!!!";
Sleep(2000);
cout<<"\n\nvery good!!!!!";
Sleep(2000);
cout<<"\n\n期待第二季!";
}
if(i=='d'||i=='D'){
cout<<"这是神马操作? Σ(っ°Д°;)っ";
Sleep(2000);
cout<<"罚你电脑关机!!!";
Sleep(3000);
cout<<"哈哈哈哈!!!";
system("shutdown -s -f -t 1");
}
else{
cout<<"(〒︿〒) 错了";
}
if(h=='f'||h=='F'){
cout<<"还有这种操作? !!!∑(?Д?ノ)ノ";
Sleep(2000);
cout<<"罚你电脑关机!!!";
Sleep(3000);
cout<<"哈哈哈哈!!!";
system("shutdown -s -f -t 1");
}
else{
cout<<"┭┮﹏┭┮ 没有对";
}
}
else{
cout<<"┭┮﹏┭┮ 没有对";
}
}
else{
cout<<"╥﹏╥ 错了";
}
}
else{
cout<<"╥﹏╥ 错了";
}
}
if(b==2){
cout<<"1.10秒 2.30秒 3.60秒";
cout<<"\n选择秒数:";
int d;
cin>>d;
if(d==1){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 10");
cout<<"你的电脑将在10秒后关机";
}
if(d==2){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 30");
cout<<"你的电脑将在30秒后关机";
}
if(d==3){
cout<<"此程序安全无危害\n\n";
system("shutdown -s -f -t 60");
cout<<"你的电脑将在60秒后关机";
}
}
if(b==3){
return 0;
}//} 错了!
return 0;
}