c++答辩小游戏

#include<bits/stdc++.h>
using namespace std;
//初始化
//只要回一点c++就能做出来 
char ndxz;long long jb=0;long long zs=0;int gqs=1;int gqs2=1;string yhm="游客";string yhm2;int q=yhm.length();int vip=1;int lbm;int p;void kgbyxzjm();void zhxg();void zjm();void kgbyx();void zcbyx();void yx();void zh();void tg();void sc();int tgk;int mr=0; 
//账号修改系统 
void zhxg(){
	yhm2=yhm;
	cout<<"输入你的新用户名(1~29位,不能含有空格,否则系统会崩溃):"; 
	cin>>yhm;
	if(yhm.length()>29){
		yhm=yhm2;
		cout<<"用户名超限!!!";
		_sleep(1000); 
		system("cls");
		if(ndxz=='+'){
			kgbyxzjm();
		}else{
			zjm();
		} 
	}
	yhm2=yhm; 
	system("cls"); 
	if(ndxz=='+'){
		kgbyxzjm();
	}else{
		zjm();
	} 
}
//闯关系统(持续更新中loading...) 
void yx(int x){
	if(x==1){
		cout<<"3人行,必有一个不是人"<<endl;
		cout<<"1号:我是煞笔"<<endl;
		cout<<"2号:我不是人"<<endl;
		cout<<"3号:我肯定是人啊"<<endl;
		cout<<"你手里有一把枪,但只有一颗子弹,你要射谁(1=1号 2=2号 3=3号)"; 
		int yx1;
		cin>>yx1; 
		if(yx1==3){
			cout<<"win";
			gqs++;
			jb=jb+1*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			}	
		}
	}else if(x==2){
		cout<<"     找出小黑子"<<endl;
		cout<<"1号:2号小黑子露出鸡脚了吧"<<endl;
		cout<<"3号:我是ikun"<<endl; 
		int yx1;
		cin>>yx1; 
		if(yx1==3){
			cout<<"win";
			gqs++;
			jb=jb+2*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}
	}else if(x==3){
		cout<<"     谁是ikun"<<endl; 
		cout<<"1号:2号是ikun,揍死他"<<endl;
		cout<<"3号:我是ikun"<<endl;
		int yx1;
		cin>>yx1; 
		if(yx1==1){
			cout<<"win";
			gqs++;
			jb=jb+4*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			}	
		}
	}else if(x==4){
		cout<<"3人行,必有一个不是人2.0"<<endl; 
		cout<<"1号:我很傻逼"<<endl;
		cout<<"3号:我是小黑子~"<<endl;
		cout<<"2号:我是大聪明"<<endl; 
		cout<<"  联系1.0"<<endl; 
		int yx1;
		cin>>yx1; 
		if(yx1==2){
			cout<<"win";
			gqs++;
			jb=jb+8*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			}	
		}		
	}else if(x==5){
		cout<<"		找出尼玛"<<endl; 
		cout<<"1号:我是2号姐姐,她是你大姨"<<endl;
		cout<<"3号:我是大姨"<<endl;
		cout<<"2号:我是尼玛,操尼玛"<<endl; 
		cout<<"  联系1.0"<<endl; 
		int yx1;
		cin>>yx1; 
		if(yx1=1){
			cout<<"win";
			gqs++;
			jb=jb+16*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			}	
		}		
	}else if(x==6){
		cout<<"     谁是ikun2.0"<<endl; 
		cout<<"1号:2号是小黑子,露出指引坤叫勒八"<<endl;
		cout<<"2号:你吴县人,我是ikun"<<endl; 
		cout<<"3号:我是jntm"<<endl;
		int yx1;
		cin>>yx1; 
		if(yx1==1){
			cout<<"win";
			gqs++;
			jb=jb+32*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			}	
		}		
	}else if(x==7){
		cout<<"     找出小黑子2.0"<<endl;
		cout<<"1号:我是ikun"<<endl;
		cout<<"3号:c女士大傻波"<<endl; 
		int yx1;
		cin>>yx1; 
		if(yx1==3){
			cout<<"win";
			gqs++;
			jb=jb+64*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}		
	}else if(x==8){
		cout<<"    谁是卧底"<<endl;
		cout<<"1号:这个东西可以eat"<<endl;
		cout<<"2号:这个东西是红的"<<endl;
		cout<<"3号:这个东西是蓝的"<<endl; 
		int yx1;
		cin>>yx1; 
		if(yx1==3){
			cout<<"win";
			gqs++;
			jb=jb+128*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}				
	}else if(x==9){
		cout<<"    谁是傻逼"<<endl;
		cout<<"1号:2号是煞笔"<<endl;
		cout<<"2号:我不是"<<endl;
		cout<<"3号:我是煞笔"<<endl; 
		int yx1; 
		cin>>yx1; 
		if(yx1==2){
			cout<<"win";
			gqs++;
			jb=jb+256*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls"); 
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}		
	}else if(x==10){
		cout<<"										迷宫1.0"<<endl; 
		int ew[8][8]={
		3,1,1,1,1,1,1,1,
		0,1,1,0,1,0,0,0,
		0,1,1,0,0,0,1,0,
		0,0,1,0,1,1,1,0,
		0,1,1,0,0,0,1,0,
		0,0,1,0,1,1,1,0,
		1,0,0,0,0,0,1,0,
		1,1,1,1,1,1,1,2
		};
		int mg1=0,mg2=0,yx1=0,b1;
		for(int i=0;i<8;i++){
			for(int j=0;j<8;j++){
				cout<<ew[i][j];
			}
			cout<<endl;
		} 
		while(true){
			cout<<"w:向上走一格,a:向左走一格,s:向下走一格,d,向右走一格,3代表你,2代表终点,0代表路(禁止回头!!!)"<<endl;
			char b;
			cin>>b;
			if(b=='w'){
				if(mg1-1<0||ew[mg1-1][mg2]==1){
					cout<<"失败";
					_sleep(1000);
					system("cls");
					if(ndxz=='+'){
						kgbyxzjm();
					}else{
						zjm();
					} 
				}else{
					swap(ew[mg1][mg2],ew[mg1-1][mg2]);
					mg1--;
				}
			}else if(b=='a'){
				if(mg2-1<0||ew[mg1][mg2-1]==1){
					cout<<"失败";
					_sleep(1000);system("cls");
					if(ndxz=='+'){
						kgbyxzjm();
					}else{
						zjm();
					} 
				}else{
					swap(ew[mg1][mg2],ew[mg1][mg2-1]);
					mg2--;
				}				
			}else if(b=='s'){
				if(mg1+1>7||ew[mg1+1][mg2]==1){
					cout<<"失败";
					_sleep(1000);system("cls");
					if(ndxz=='+'){
						kgbyxzjm();
					}else{
						zjm();
					} 
				}else{
					swap(ew[mg1][mg2],ew[mg1+1][mg2]);
					mg1++;
				}				
			}else if(b=='d'){
				if(mg2+1>7||ew[mg1][mg2+1]==1){
					cout<<"失败";
					_sleep(1000);system("cls");
					if(ndxz=='+'){
						kgbyxzjm();
					}else{
						zjm();
					} 
				}else{
					swap(ew[mg1][mg2],ew[mg1][mg2+1]);
					mg2++;
				}				
			}
			if(ew[mg1][mg2]==1||b=='w'&&b1=='s'||b=='a'&&b1=='d'||b=='s'&&b1=='w'||b=='d'&&b1=='a'){
				cout<<"失败";
				_sleep(1000);system("cls");
				if(ndxz=='+'){
					kgbyxzjm();//1,2,3,4:1,2,3,1,2,4,1,3,4,2,3,4
				}else{
					zjm();
				} 
			}else{
				if(mg1==7&&mg2==7){
					cout<<"win";
					gqs++;
					jb=jb+512*vip; 
					int sftc;
					cout<<" 你选择下一关(1)还是退出(2)";
					cin>>sftc;
					if(sftc==1){
						system("cls"); 
						yx(gqs);
					}else if(sftc==2){
						system("cls");
						if(ndxz=='+'){
							kgbyxzjm();
						}else{
							zjm();
						}
					}
				}
				system("cls");
				for(int i=0;i<8;i++){
					for(int j=0;j<8;j++){
						cout<<ew[i][j];
					}
					cout<<endl;
				}
			}	
			b1=b;			
		}
	}else if(x==11){
		cout<<"    谁是傻逼2"<<endl;
		cout<<"1号:2号是傻逼"<<endl;
		cout<<"2号:我不是"<<endl;
		cout<<"3号:我是煞笔"<<endl; 
		int yx1; 
		cin>>yx1; 
		if(yx1==1){
			cout<<"win";
			gqs++;
			zs=zs+1*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls"); 
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}				
	}else if(x==12){
		cout<<"    谁是laoliu"<<endl;
		cout<<"1号:2号是老六"<<endl;
		cout<<"2号:我是"<<endl;
		cout<<"3号:我是老刘"<<endl; 
		int yx1; 
		cin>>yx1; 
		if(yx1==1){
			cout<<"win";
			gqs++;
			zs=zs+2*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls"); 
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}		
	}else if(x==13){
		cout<<"    time"<<endl;
		cout<<"time*5=钝角"<<endl;
		cout<<"time>100"<<endl;
		cout<<"time%3=0"<<endl; 
		string yx1; 
		cin>>yx1; 
		if(yx1=="刘邦"||yx1=="liubang"){
			cout<<"win";
			gqs++;
			zs=zs+2*vip; 
			int sftc;
			cout<<" 你选择下一关(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls"); 
				yx(gqs);
			}else if(sftc==2){
				system("cls");
				if(ndxz=='+'){
					kgbyxzjm();
				}else{
					zjm();
				}
			} 
		}else{
			cout<<"失败";
			int sftc;
			cout<<" 你选择重新开始(1)还是退出(2)";
			cin>>sftc;
			if(sftc==1){
				system("cls");
				yx(gqs);
			}else{
				system("cls");
				if(ndxz=='+'){
				kgbyxzjm();
				}else{
				zjm();
			}
		}	
	}				
	}else{
		cout<<"尽情期待";
		_sleep(1000);
		system("cls"); 
		if(ndxz=='+'){
			kgbyxzjm();
		}else{
			zjm();
		}
	}
}
//主界面系统 
void zjm(){
	q=yhm.length();
	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
	cout<<"                                  -------------------------------------"<<endl;
	cout<<"                                  |账号:"<<yhm;
	for(int i=1;i<=29-q;i++){
		cout<<' ';
	}
	cout<<"|"<<endl;
	cout<<"                                  |金币:";
	if(jb<10){
		cout<<jb<<"  ";
	}else if(jb>=10&&jb<100){
		cout<<jb<<' ';
	}else if(jb>=100&&jb<1000){
		cout<<jb/100<<'h'<<' ';
	}else if(jb>=1000&&jb<10000){
		cout<<jb/1000<<'k'<<' ';
	}else if(jb>=10000&&jb<100000){
		cout<<jb/10000<<'w'<<' ';
	}else if(jb>=100000&&jb<1000000){
		cout<<jb/100000<<"tw";
	}else if(jb>=1000000&&jb<10000000){
		cout<<jb/1000000<<"hw";
	}else if(jb>=10000000&&jb<100000000){
		cout<<jb/10000000<<"kw";
	}else if(jb>=100000000&&jb<1000000000){
		cout<<jb/100000000<<"y ";
	}else if(jb>=1000000000&&jb<10000000000){
		cout<<jb/1000000000<<"ty";
	}else if(jb>=10000000000&&jb<100000000000){
		cout<<jb/10000000000<<"hy";
	}else if(jb>=100000000000&&jb<1000000000000){
		cout<<jb/100000000000<<"ky";
	}else if(jb>=1000000000000&&jb<10000000000000){
		cout<<jb/1000000000000<<"z ";
	}else if(jb>=10000000000000&&jb<100000000000000){
		cout<<jb/10000000000000<<"tz";
	}else if(jb>=100000000000000&&jb<1000000000000000){
		cout<<jb/100000000000000<<"hz"; 
	}else if(jb>=1000000000000000&&jb<10000000000000000){
		cout<<jb/1000000000000000<<"kz";
	}else if(jb>=10000000000000000&&jb<100000000000000000){
		cout<<jb/10000000000000000<<"j ";
	}else if(jb>=100000000000000000&&jb<1000000000000000000){
		cout<<jb/100000000000000000<<"tj";
	}else if(jb>=1000000000000000000&&jb<10000000000000000000){
		cout<<jb/1000000000000000000<<"bj";
	}
	cout<<"____________________      |"<<endl;
	cout<<"                                  |钻石:";
	if(zs<10){
		cout<<zs<<"  ";
	}else if(zs>=10&&zs<100){
		cout<<zs<<' ';
	}if(zs>=100&&zs<1000){
		cout<<zs/100<<'h'<<' ';
	}else if(zs>=1000&&zs<10000){
		cout<<zs/1000<<'k'<<' ';
	}else if(zs>=10000&&zs<100000){
		cout<<zs/10000<<'w'<<' ';
	}else if(zs>=100000&&zs<1000000){
		cout<<zs/100000<<"tw";
	}else if(zs>=1000000&&zs<10000000){
		cout<<zs/1000000<<"hw";
	}else if(zs>=10000000&&zs<100000000){
		cout<<zs/10000000<<"kw";
	}else if(zs>=100000000&&zs<1000000000){
		cout<<zs/100000000<<"y ";
	}else if(zs>=1000000000&&zs<=2000000000){
		cout<<zs/1000000000<<"ty";
	}else if(zs>=10000000000&&zs<100000000000){
		cout<<zs/10000000000<<"hy";
	}else if(zs>=100000000000&&zs<1000000000000){
		cout<<zs/100000000000<<"ky";
	}else if(zs>=1000000000000&&zs<10000000000000){
		cout<<zs/1000000000000<<"z ";
	}else if(zs>=10000000000000&&zs<100000000000000){
		cout<<zs/10000000000000<<"tz";
	}else if(zs>=100000000000000&&zs<1000000000000000){
		cout<<zs/100000000000000<<"hz"; 
	}else if(zs>=1000000000000000&&zs<10000000000000000){
		cout<<zs/1000000000000000<<"kz";
	}else if(zs>=10000000000000000&&zs<100000000000000000){
	cout<<zs/10000000000000000<<"j ";
	}else if(zs>=100000000000000000&&zs<1000000000000000000){
		cout<<zs/100000000000000000<<"tj";
	}else if(zs>=1000000000000000000&&zs<100000000000000000000){
		cout<<zs/1000000000000000000<<"bj";
	}
	cout<<"|__开始游戏_第"<<gqs<<"关";
	if(gqs>=10&&gqs<100){
		cout<<"_|";
	}else if(gqs>=100){
		cout<<'|';
	}else{
		cout<<"__|";
	}
	cout<<"5跳关 |"<<endl;
	cout<<"                                  |_______                       4商城|"<<endl;
	cout<<"                                  |v.1.3.2|1=进入,2=退出,3账号修改   |"<<endl;
	cout<<"                                  -------------------------------------"<<endl;
	cout<<"               				       vip:"<<vip<<"跳关卡:"<<tgk<<" time工作室出品"<<endl; 
	cin>>p; 
	system("cls");
	if(p==1){
		yx(gqs);
	}else if(p==2){
		exit(0);
	}else if(p==3){
		return zhxg();
	}else if(p==4){
		sc();
	}else if(p==5){
		if(tgk<1){
			cout<<"跳关卡不足";
			_sleep(3000);
			system("cls"); 
			zjm();
		}else{
			tgk--;
			gqs2=gqs;
			tg();
		}
	} 
} 
//商城系统(暂不更新) 
void sc(){
	cout<<"钻石:"<<zs<<"  金币:"<<jb<<endl; 
	cout<<"1钻石=5金币(1),1000钻石=一张跳关卡(2),1000金币=1钻石(3),10000钻石=升级一次vip(4),每日免费礼包:5钻石,100金币(vip等级越高,给的就越多)(5)("<<mr<<"/1),退出按两次0"; 
	int scwp;
	cin>>scwp; 
	cout<<"你要购买多少个";
	long long sl;
	cin>>sl;
	if(scwp==1){
		if(1*sl>zs){
			cout<<"钻石不足"; 
		}else{
			cout<<"购买成功!";
			zs=zs-sl*1; 
			jb=jb+sl*5;
		}
	}else if(scwp==2){
		if(1000*sl>zs){
			cout<<"钻石不足";
		}else{
			cout<<"购买成功";
			zs=zs-sl*1000;
			tgk=tgk+sl*1; 
		}
	}else if(scwp==3){
		if(1000*sl>jb){
			cout<<"金币不足"; 
		}else{
			cout<<"购买成功";
			jb=jb-1000*sl;
			zs+=sl;
		}
	}else if(scwp==4){
		if(10000*sl>zs){
			cout<<"钻石不足"; 
		}else{
			cout<<"购买成功";
			zs=zs-10000*sl;
			vip=vip+sl*1; 
		}
	}else if(scwp==5){
		if(mr==1){
			cout<<"已到购买上限";
		}else{
			cout<<"购买成功"; 
			zs=zs+5*vip;
			jb=jb+100*vip; 
			mr++;
		} 
	}else if(scwp==0){
		cout<<"laoding..."; 
		_sleep(1000); 
		system("cls");
		if(ndxz=='+'){
			kgbyxzjm();
		}else{
			zjm();
		}		
	}else{
		cout<<"没有此商品";
		_sleep(1000); 
		system("cls");
		if(ndxz=='+'){
			kgbyxzjm();
		}else{
			zjm();
		}
	} 
	cout<<endl<<"你要继续购买吗,1:买 2:不买";
	int nyjxgmm; 
	cin>>nyjxgmm;
	system("cls");
	if(nyjxgmm==1){
		sc(); 
	}else if(nyjxgmm==2){
		if(ndxz=='+'){
			kgbyxzjm();
		}else{
			zjm();
		}	
	}
	_sleep(3000);
	system("cls");
}
//开挂版游戏系统 
void kgbyx(){
	cout<<"输入你的金币数量(上限20亿):";
	cin>>jb; 
	cout<<"输入你的钻石数量(上限20亿):";
	cin>>zs;
	cout<<"输入你的vip等级(上限32767级):";
	cin>>vip; 
	system("cls");
	kgbyxzjm();
}
//开挂版游戏主界面系统 
void kgbyxzjm(){
	q=yhm.length();
	cout<<endl<<endl<<endl<<endl<<endl<<endl<<endl;
	cout<<"                                  -------------------------------------"<<endl;
	cout<<"                                  |账号:"<<yhm;
	for(int i=1;i<=29-q;i++){
		cout<<' ';
	}
	cout<<"|"<<endl;
	cout<<"                                  |金币:";
	if(jb<10){
		cout<<jb<<"  ";
	}else if(jb>=10&&jb<100){
		cout<<jb<<' ';
	}else if(jb>=100&&jb<1000){
		cout<<jb/100<<'h'<<' ';
	}else if(jb>=1000&&jb<10000){
		cout<<jb/1000<<'k'<<' ';
	}else if(jb>=10000&&jb<100000){
		cout<<jb/10000<<'w'<<' ';
	}else if(jb>=100000&&jb<1000000){
		cout<<jb/100000<<"tw";
	}else if(jb>=1000000&&jb<10000000){
		cout<<jb/1000000<<"hw";
	}else if(jb>=10000000&&jb<100000000){
		cout<<jb/10000000<<"kw";
	}else if(jb>=100000000&&jb<1000000000){
		cout<<jb/100000000<<"y ";
	}else if(jb>=1000000000&&jb<10000000000){
		cout<<jb/1000000000<<"ty";
	}else if(jb>=10000000000&&jb<100000000000){
		cout<<jb/10000000000<<"hy";
	}else if(jb>=100000000000&&jb<1000000000000){
		cout<<jb/100000000000<<"ky";
	}else if(jb>=1000000000000&&jb<10000000000000){
		cout<<jb/1000000000000<<"z ";
	}else if(jb>=10000000000000&&jb<100000000000000){
		cout<<jb/10000000000000<<"tz";
	}else if(jb>=100000000000000&&jb<1000000000000000){
		cout<<jb/100000000000000<<"hz"; 
	}else if(jb>=1000000000000000&&jb<10000000000000000){
		cout<<jb/1000000000000000<<"kz";
	}else if(jb>=10000000000000000&&jb<100000000000000000){
		cout<<jb/10000000000000000<<"j ";
	}else if(jb>=100000000000000000&&jb<1000000000000000000){
		cout<<jb/100000000000000000<<"tj";
	}else if(jb>=1000000000000000000&&jb<10000000000000000000){
		cout<<jb/1000000000000000000<<"bj";
	}
		cout<<"____________________      |"<<endl;
		cout<<"                                  |钻石:";
	if(zs<10){
		cout<<zs<<"  ";
	}else if(zs>=10&&zs<100){
		cout<<zs<<' ';
	}if(zs>=100&&zs<1000){
		cout<<zs/100<<'h'<<' ';
	}else if(zs>=1000&&zs<10000){
		cout<<zs/1000<<'k'<<' ';
	}else if(zs>=10000&&zs<100000){
		cout<<zs/10000<<'w'<<' ';
	}else if(zs>=100000&&zs<1000000){
		cout<<zs/100000<<"tw";
	}else if(zs>=1000000&&zs<10000000){
		cout<<zs/1000000<<"hw";
	}else if(zs>=10000000&&zs<100000000){
		cout<<zs/10000000<<"kw";
	}else if(zs>=100000000&&zs<1000000000){
		cout<<zs/100000000<<"y ";
	}else if(zs>=1000000000&&zs<=2000000000){
		cout<<zs/1000000000<<"ty";
	}else if(zs>=10000000000&&zs<100000000000){
		cout<<zs/10000000000<<"hy";
	}else if(zs>=100000000000&&zs<1000000000000){
		cout<<zs/100000000000<<"ky";
	}else if(zs>=1000000000000&&zs<10000000000000){
		cout<<zs/1000000000000<<"z ";
	}else if(zs>=10000000000000&&zs<100000000000000){
		cout<<zs/10000000000000<<"tz";
	}else if(zs>=100000000000000&&zs<1000000000000000){
		cout<<zs/100000000000000<<"hz"; 
	}else if(zs>=1000000000000000&&zs<10000000000000000){
		cout<<zs/1000000000000000<<"kz";
	}else if(zs>=10000000000000000&&zs<100000000000000000){
	cout<<zs/10000000000000000<<"j ";
	}else if(zs>=100000000000000000&&zs<1000000000000000000){
		cout<<zs/100000000000000000<<"tj";
	}else if(zs>=1000000000000000000&&zs<10000000000000000000){
		cout<<zs/1000000000000000000<<"bj";
	}
		cout<<"|__开始游戏_第"<<gqs<<"关";
		if(gqs>=10&&gqs<100){
			cout<<"_|";
		}else if(gqs>=100){
			cout<<'|';
		}else{
			cout<<"__|";
		}
		cout<<"4:跳关|"<<endl;
		cout<<"                                  |_______                     5:商城 |"<<endl;
		cout<<"                                  |v.1.4.0|1=进入,2=退出,3账号修改   |"<<endl;
		cout<<"                                  -------------------------------------"<<endl;
		cout<<"                                  1024版   vip:"<<vip<<" time工作室出品"<<endl;
		cin>>p;
		system("cls");
		if(p==1){
			yx(gqs);
		}else if(p==2){
			exit(0);
		}else if(p==3){
			return zhxg();
		}else if(p==4){
			return tg();
		}else if(p==5){
			return sc(); 
		} 
}
//跳关系统 
void tg(){
	cout<<"输入你要跳到几关"; 
	cin>>gqs;
	system("cls");
	yx(gqs);
}
//正常版游戏 
void zcbyx(){
	zjm(); 
}	
//进入游戏条件 
int main(){
	cout<<"点赞:大佬";
	cout<<endl<<"关注:究极人类";	
	cout<<endl<<"下次一定:???"<<endl;
	cout<<"q(点赞),+(关注),x(下次一定)"<<endl<<"你的选择?";
	cin>>ndxz; 
	system("cls");
	if(ndxz=='x'){
		cout<<"由于你选择肥肠症却,游戏无法开始(***=大鲨bee)。";
	}else if(ndxz=='q'){
		cout<<"由于你选择正确,赠送6480钻石(10钻石=1元)"<<endl;zs+=6480;_sleep(1000);system("cls");zcbyx(); 
	}else if(ndxz=='+'){
		cout<<"由于你选的太正确了,已为您启动开挂版"<<endl;kgbyx(); 
	}else{
		cout<<"无提示"<<endl;_sleep(1000);system("cls");zcbyx();
	}
	return 0;
}	

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值