周哥的大福利之约翰的无限迷宫1.0

#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;
} 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值