#include<iostream>
#include<Windows.h>
#include<cstdlib>
#include<ctime>
using namespace std;
int main(){
for(int i=1;i<=100;i++){
cout<<"游戏资源“约翰的无限迷宫”正在加载中······"<<endl;
cout<<"目前加载进度:"<<i<<"%"<<endl;
if(i!=100){
Sleep(1);
system("CLS");
}
}
Sleep(1000);
system("CLS");
cout<<"欢";
Sleep(1000);
cout<<"迎";
Sleep(1000);
cout<<"来";
Sleep(1000);
cout<<"玩";
Sleep(1000);
cout<<"游";
Sleep(1000);
cout<<"戏";
Sleep(1000);
system("CLS");
cout<<"某";
Sleep(1);
cout<<"一";
Sleep(1);
cout<<"天";
Sleep(1);
cout<<",";
Sleep(1);
cout<<"约";
Sleep(1);
cout<<"翰";
Sleep(1);
cout<<"走";
Sleep(1);
cout<<"进";
Sleep(1);
cout<<"了";
Sleep(1);
cout<<"一";
Sleep(1);
cout<<"个";
Sleep(1);
cout<<"迷";
Sleep(1);
cout<<"宫";
Sleep(1);
cout<<",";
Sleep(1);
cout<<"请";
Sleep(1);
cout<<"帮";
Sleep(1);
cout<<"助";
Sleep(1);
cout<<"它";
Sleep(1);
cout<<"逃";
Sleep(1);
cout<<"脱";
Sleep(1);
cout<<"。";
Sleep(1);
MessageBox(NULL,"请点击确定后进行讲解游戏规则。","提示",MB_OK);
system("CLS");
cout<<"游戏开始后,屏幕上会出现7个数,只要你回答对“1”是第几个数,即可进行下一关,否则,游戏结束,展示出游戏结果。";
MessageBox(NULL,"点击确定后,游戏开始。","提示",MB_OK);
Sleep(1);
system("CLS");
string a[7]={"1000000","0100000","0010000","0001000","0000100","0000010","0000001"};
int sum=0;
while(1){
srand(time(0));
int n=rand()%6;
string shu=a[n];
cout<<shu<<endl;
int f;
cin>>f;
if(f-1==n){
sum++;
Sleep(1);
system("CLS");
}
else{
Sleep(1);
system("CLS");
break;
}
}
cout<<"G";
Sleep(1);
cout<<"a";
Sleep(1);
cout<<"m";
Sleep(1);
cout<<"e";
Sleep(1);
cout<<" ";
Sleep(1);
cout<<"o";
Sleep(1);
cout<<"v";
Sleep(1);
cout<<"e";
Sleep(1);
cout<<"r";
Sleep(1);
cout<<"!";
Sleep(3000);
system("CLS");
cout<<"通关的数量:"<<sum;
Sleep(3000);
system("CLS");
cout<<"游";
Sleep(1000);
cout<<"戏";
Sleep(1000);
cout<<"结";
Sleep(1000);
cout<<"束";
Sleep(1000);
cout<<"!";
Sleep(3000);
system("CLS");
return 0;
}
周哥的大福利之约翰的无限迷宫1.0
最新推荐文章于 2024-10-28 09:31:29 发布