跳到正文

休闲·娱乐

修仙小游戏 1.4

yanziwei88约 162 分钟
原文
文章信息与版本

文章信息

发布
2024年10月10日
收录
2025年12月12日
更新
2026年11月22日
篇幅
约 162 分钟

版本

  1. v1当前

请看准正版

C++
#include <bits/stdc++.h>
#include<windows.h>
using namespace std;
int jnn[109],cl[109];
int cnt=1,ran=0,zy,nd;
string name;
long long money1=100;
long long money2=0;
long long a=2,b=10,sx,jy;
int c=0,d=0;
bool s=0,xx=0,bj=0,jia=0,jia1=0,fushi=0,fuxue,fs,ran1=0,su=0;
int tl=30,pjs=0,jian;
int zz,jl1,jl2,rnw;
int cen=0;
int i11=1;
struct cww{
	string nm;
	int j,x,jy=0,cjn;
	int ccnt=0;
}cw[1009];

int hh[1009];
bool zhan(int x,int y){
	system("cls");
	if(nd==0){
		x/=10;
		y/=10;
	}
	if(nd==2){
		x*=3;
		y*=3;
	}
	x++;
	y+=2;
	bool hb=1,nyun=0;
	bool df=1,dr=0;
	int b1=b,cs=3+cnt/1000,du1=0,du2=0;
	ran=0;
	jian=0;
	for(int i=1;i<=i11;i++){
		hh[i]=cw[i].x;
	}
	while(1){
		system("cls");
		if(nyun){
			cout<<"你被击晕了"<<endl;
			cout<<"他打了你"<<x<<"滴血"<<endl;
			b1-=x;
			if(b1<=0)return 0;
		}
		if(y<=0)return 1;
		if(b1<=0)return 0;
		cout<<"你 攻击:"<<a<<"血量:"<<b1<<endl;
		Sleep(100);
		cout<<"敌方 攻击:"<<x<<"血量:"<<y<<endl;
		Sleep(100);
		cout<<"(1)攻击"<<endl;
		Sleep(100);
		if(jnn[1]==1&&zy==0){
			cout<<"(2)骑士护盾"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==0){
			cout<<"(3)骑士冲刺"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==0){
			cout<<"(4)骑士圣剑"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==1){
			cout<<"(2)强力箭"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==1){
			cout<<"(3)箭雨"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==1){
			cout<<"(4)爆裂箭"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==2){
			cout<<"(2)空明斩"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==2){
			cout<<"(3)裂空斩"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==2){
			cout<<"(4)弦月斩"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==3&&sx==2){
			cout<<"(2)雷电术"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==3&&sx==2){
			cout<<"(3)九天神雷"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==3&&sx==2){
			cout<<"(4)泯灭天雷"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==3&&sx==1){
			cout<<"(2)火球术"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==3&&sx==1){
			cout<<"(3)混沌火种"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==3&&sx==1){
			cout<<"(4)焚天火柱"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==3&&sx==0){
			cout<<"(2)冰凌刺"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==3&&sx==0){
			cout<<"(3)禁锢寒霜"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==3&&sx==0){
			cout<<"(4)凋零冰晶"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==4){
			cout<<"(2)下毒"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==4){
			cout<<"(3)回血丹"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==4){
			cout<<"(4)瘟疫"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==5){
			cout<<"(2)迷你世界"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==5){
			cout<<"(3)迷你枪战精英"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==5){
			cout<<"(4)小小世界"<<endl;
			Sleep(100);
		}
		if(jnn[1]==1&&zy==6){
			cout<<"(2)机枪扫射"<<endl;
			Sleep(100);
		}
		if(jnn[2]==1&&zy==6){
			cout<<"(3)无敌迫击炮"<<endl;
			Sleep(100);
		}
		if(jnn[3]==1&&zy==6){
			cout<<"(4)星际核弹"<<endl;
			Sleep(100);
		}
		if(jnn[4]==1){
			cout<<"(5)横扫千军"<<endl;
			Sleep(100);
		}
		if(jnn[5]==1){
			cout<<"(6)回血"<<endl;
			Sleep(100);
		}
		if(jnn[6]==1){
			cout<<"(7)肘击"<<endl;
			Sleep(100);
		}
		if(jnn[7]==1&&hb==1){
			cout<<"(8)寒冰尖刺"<<endl;
			Sleep(100);
		}
		if(jnn[8]==1){
			cout<<"(9)激光炮"<<endl;
			Sleep(100);
		}
		if(jnn[9]==1){
			cout<<"(10)打狗棒法"<<endl;
			Sleep(100);
		}
		if(jnn[10]==1){
			cout<<"(11)火焰之力"<<endl;
			Sleep(100);
		}
		if(jnn[11]==1){
			cout<<"(12)水之力"<<endl;
			Sleep(100);
		}
		if(jnn[12]==1&&cs!=0){
			cout<<"(13)创世之力"<<endl;
			Sleep(100);
		}
		if(jnn[13]==1){
			cout<<"(14)天荒"<<endl;
			Sleep(100);
		}
		if(jnn[14]==1){
			cout<<"(15)天地拳"<<endl;
			Sleep(100);
		}
		if(jnn[15]==1){
			cout<<"(16)火日飞踢"<<endl;
			Sleep(100);
		}
		if(jnn[16]==1){
			cout<<"(17)炎黄之掌"<<endl;
			Sleep(100);
		}
		if(jnn[17]==1){
			cout<<"(18)天龙掌"<<endl;
			Sleep(100);
		}
		if(jnn[18]==1){
			cout<<"(19)扫射"<<endl;
		}
		if(jnn[19]==1){
			cout<<"(20)影子球"<<endl;
		}
		if(jnn[20]==1){
			cout<<"(21)朱雀圣火"<<endl;
		}
		if(jnn[21]==1){
			cout<<"(22)极刃风暴"<<endl;
		}
		int f;
		cin>>f;
		if(f==1){
			cout<<"你攻击了他 "<<a+pjs<<"滴血"<<endl;
			Sleep(100);
			y-=a;
			y-=pjs;
			hb=1;
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==2){
			cout<<"你用空明斩劈了他 "<<2*cnt+a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a;
			y-=2*cnt;
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==2){
			cout<<"你用裂空斩劈了他 "<<a*(1+1.0*cnt/150)*1.3+cnt*0.2<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/150)*1.3;
			y-=cnt*0.2;
		}
		if(f==4&&jnn[3]==1&&zy==2){
			cout<<"你用弦月斩劈了他 "<<a*(1.3+1.0*cnt/75)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1.3+1*cnt/75);
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==1){
			cout<<"你用强力箭射了他 "<<a*1.6<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*1.6;
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==1){
			cout<<"你用了箭雨"<<endl;
			srand(time(0));
			int lj=rand()%8;
			lj++;
			jian+=lj;
			Sleep(100);
			hb=1;
			df=1;
		}
		if(f==4&&jnn[3]==1&&zy==1){
			srand(time(0));
			int lj=rand()%4;
			lj++;
			cout<<"你用爆裂箭射了他 "<<a*(0.4+1.0*cnt/70)*lj+120<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(0.4+1.0*cnt/70)*lj;
			y-=120;
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==0){
			cout<<"你用骑士护盾顶了他 "<<cnt+a*0.8<<"滴血"<<endl;
			cout<<"你用骑士护盾回了 "<<4*cnt+b/8<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*0.8;
			y-=cnt;
			b1+=cnt*4;
			b1+=b/8;
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==0){
			cout<<"你用骑士冲刺撞了他 "<<a*(1+1.0*cnt/100)<<"滴血"<<endl;
			srand(time(0));
			int lj=rand()%3;
			if(lj==2) {
				cout<<"你击晕了他 "<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/100);
		}
		if(f==4&&jnn[3]==1&&zy==0){
			cout<<"你用骑士圣剑劈了他 "<<a*(1.3+1.0*cnt/80)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1+1.3*cnt/80);
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==3&&sx==2){
			srand(time(0));
			int lj=rand()%3;
			cout<<"你用雷电术轰了他 "<<a*0.9*(lj+1)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*0.9*(lj+1);
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==3&&sx==2){
			srand(time(0));
			int lj=rand()%9;
			cout<<"你用九天神雷轰了他 "<<a*0.4*(lj+1)<<"滴血"<<endl;
			srand(time(0));
			int lj1=rand()%9;
			if(lj1>=4&&lj1<=6){
				cout<<"他被电晕了"<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1.1+1.0*cnt/140);
		}
		if(f==4&&jnn[3]==1&&zy==3&&sx==2){
			cout<<"你用泯灭天雷轰了他 "<<a*(1.4+1.0*cnt/90)<<"滴血"<<endl;
			srand(time(0));
			int lj1=rand()%80;
			if(lj1>=4&&lj1<=7){
				cout<<"他被泯灭了"<<endl;
				return 1;
			}
			Sleep(100);
			hb=1;
			y-=a*(1.4+1.0*cnt/90);
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==3&&sx==1){
			srand(time(0));
			int lj=rand()%5;
			cout<<"你用火球术轰了他 "<<a*0.6*(lj+1)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*0.6*(lj+1);
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==3&&sx==1){
			cout<<"你用混沌火种轰了他 "<<a*(1.1+1.0*cnt/140)<<"滴血"<<endl;
			srand(time(0));
			int lj=rand()%3;
			if(lj==2){
				cout<<"你击晕了他 "<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1.1+1.0*cnt/140);
		}
		if(f==4&&jnn[3]==1&&zy==3&&sx==1){
			cout<<"你用焚天火柱轰了他 "<<a*(1.5+1.0*cnt/100)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1+1.5*cnt/100);
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==3&&sx==0){
			srand(time(0));
			int lj=rand()%7;
			cout<<"你用冰凌刺攻击了他 "<<a*0.45*(lj+1)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*0.45*(lj+1);
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==3&&sx==0){
			cout<<"你用禁锢寒霜攻击了他 "<<a*(1+1.0*cnt/150)+5<<"滴血"<<endl;
			srand(time(0));
			int lj=rand()%8;
			if(lj>=2&&lj<=6){
				cout<<"你冰冻了他 "<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/150);
			y-=5;
		}
		if(f==4&&jnn[3]==1&&zy==3&&sx==0){
			srand(time(0));
			int lj=rand()%4;
			cout<<"你用凋零冰晶攻击了他 "<<a*(1+1.0*cnt/80)*(lj+3)<<"滴血"<<endl;
			srand(time(0));
			int lj1=rand()%6;
			if(lj1>=2&&lj<=6){
				cout<<"你冰冻了他 "<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/80)*(lj+3);
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==4){
			cout<<"你对他下了毒 "<<endl;
			Sleep(100);
			hb=1;
			srand(time(0));
			int lj=rand()%4;
			du1+=lj;
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==4){
			cout<<"你用回血丹给自己回了 "<<cnt*10<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			b1+=cnt*10;
			df=1;
		}
		if(f==4&&jnn[3]==1&&zy==4){
			cout<<"你对他用了瘟疫 "<<endl;
			Sleep(100);
			hb=1;
			srand(time(0));
			int lj=rand()%5;
			du2+=lj;
			df=1;
		}
		if(f==2&&jnn[1]==1&&zy==5){
			cout<<"你用迷你世界气了他 "<<y/25<<"滴血"<<endl;
			Sleep(100);
			srand(time(0));
			int lj=rand()%50;
			if(lj==23||lj==32){
				cout<<"你气伤了他"<<endl;
				y-=cnt*1.5;
			}
			hb=1;
			df=1;
			y-=y/25;
		}
		if(f==3&&jnn[2]==1&&zy==5){
			cout<<"你用迷你枪战精英气了他 "<<y/20<<"滴血"<<endl;
			Sleep(100);
			srand(time(0));
			int lj=rand()%50;
			if(lj==23||lj==32){
				cout<<"你气伤了他"<<endl;
				y-=cnt*1.5;
			}
			if(lj==18||lj==33){
				cout<<"你气晕了他"<<endl;
				df=0;
			}
			hb=1;
			y-=y/20;
		}
		if(f==4&&jnn[3]==1&&zy==5){
			cout<<"你用小小世界气了他 "<<y/15<<"滴血"<<endl;
			Sleep(100);
			srand(time(0));
			int lj=rand()%50;
			if(lj==23||lj==32){
				cout<<"你气伤了他"<<endl;
				y-=cnt*1.5;
			}
			if(lj==18||lj==33){
				cout<<"你气晕了他"<<endl;
				df=0;
			}
			if(lj==1){
				cout<<"你气死了他"<<endl;
				return 1;
			}
			hb=1;
			y-=y/15;
		}
		if(f==2&&jnn[1]==1&&zy==6){
			srand(time(0));
			int lj=rand()%50;
			cout<<"你用机枪扫射射了他 "<<a*0.1*lj<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*lj;
			df=1;
		}
		if(f==3&&jnn[2]==1&&zy==6){
			cout<<"你用无敌迫击炮轰了他 "<<a*(1+1.0*cnt/150)<<"滴血"<<endl;
			srand(time(0));
			int lj=rand()%7;
			if(lj==3){
				cout<<"你击晕了他"<<endl;
				df=0;
			}
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/150);
		}
		if(f==4&&jnn[3]==1&&zy==6){
			cout<<"你用星际核弹炸了他 "<<a*(1+1.0*cnt/50)<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1+1.0*cnt/50);
			df=1;
		}
		if(f==5&&jnn[4]==1){
			cout<<"你用横扫千军攻击了他 "<<2.4*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*2.4;
			df=1;
		}
		if(f==6&&jnn[5]==1){
			cout<<"你回了"<<b/5<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			b1+=b/5;
			df=1;
		}
		if(f==7&&jnn[6]==1){
			cout<<"你肘击了他 "<<a*1.9<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*1.9;
			df=1;
		}
		if(f==8&&jnn[7]==1&&hb==1){
			cout<<"你攻击了他 "<<a*1.6<<"滴血"<<endl;
			Sleep(100);
			cout<<"你冰冻了他"<<endl;
			y-=a*1.6;
			df=0;
			hb=0;
		}
		if(f==9&&jnn[8]==1){
			cout<<"你轰了他 "<<1000*(cnt/100+0.3)<<"滴血"<<endl;
			Sleep(100);
			y-=1000*(cnt/(0.3+cnt/100));
			df=1;
			hb=1;
		}
		if(f==10&&jnn[9]==1){
			cout<<"你打了他 "<<a<<"滴血"<<endl;
			Sleep(100);
			srand(time(0));
			int lj=rand()%6;
			y-=a;
			for(int l=1;l<=lj;l++){
				cout<<"你触发连击"<<endl;
				cout<<"你打了他 "<<a<<"滴血"<<endl;
				Sleep(100);
				y-=a;
			}
			df=1;
			hb=1;
		}
		if(f==11&&jnn[10]==1){
			cout<<"你烧了他 "<<a*1.15+300<<"滴血"<<endl;
			Sleep(100);
			y-=a*1.15+300;
			ran++;
			df=1;
			hb=1;
		}
		if(f==12&&jnn[11]==1){
			cout<<"你回了"<<b*0.15<<"滴血"<<endl;
			Sleep(100);
			cout<<"你攻击了他 "<<a*0.9<<"滴血"<<endl;
			Sleep(100);
			y-=a*0.9;
			hb=1;
			b1+=b*0.15;
			df=1;
		}
		if(f==13&&jnn[12]==1&&cs!=0){
			cout<<"你攻击了他 "<<a*4<<"滴血"<<endl;
			Sleep(100);
			cout<<"你回了"<<cnt/2<<"滴血"<<endl;
			Sleep(100);
			y-=a*4;
			b1+=cnt/2;
			df=1;
			hb=1;
			cs--;
		}
		if(f==14&&jnn[13]==1){
			cout<<"你用天荒攻击了他 "<<2*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*2;
			df=1;
		}
		if(f==15&&jnn[14]==1){
			cout<<"你用天地拳攻击了他 "<<1.3*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*1.3;
			df=1;
		}
		if(f==16&&jnn[15]==1){
			cout<<"你用火日飞踢掌攻击了他 "<<1.4*a<<"滴血"<<endl;
			Sleep(100);
			srand(time(0));
			int x1=rand()%10;
			if(x1==5){
				cout<<"你踢晕了他"<<endl;
				df=0;
			}
			hb=1;
			y-=a*1.4;
		}
		if(f==17&&jnn[16]==1){
			cout<<"你用炎黄之掌攻击了他 "<<1.6*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*1.6;
			df=1;
		}
		if(f==18&&jnn[17]==1){
			cout<<"你用天龙掌攻击了他 "<<2.1*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*2.1;
			df=1;
		}
		if(f==19&&jnn[18]==1){
			srand(time(0));
			int x1=rand()%10;
			cout<<"你扫了他"<<x1*a*0.3<<"滴血"<<endl;
			y-=x1*a*0.3;
		}
		if(f==20&&jnn[19]==1){
			srand(time(0));
			int x1=rand()%15;
			cout<<"你用影子球攻击了他 "<<(1+x1/10)*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*(1+x1/10);
			df=1;
		}
		if(f==21&&jnn[20]==1){
			cout<<"你用朱雀神火攻击了他 "<<3.1*a<<"滴血"<<endl;
			Sleep(100);
			ran+=2;
			hb=1;
			y-=a*3.1;
			df=1;
		}
		if(f==22&&jnn[21]==1){
			cout<<"你用极刃风暴攻击了他 "<<1.55*a<<"滴血"<<endl;
			Sleep(100);
			hb=1;
			y-=a*1.55;
			df=1;
		}
		if(xx==1){
			cout<<"你吸了他"<<a/3<<"滴血"<<endl;
			Sleep(200);
			b1+=a/3;
			y-=a/3;
		}
		if(bj==1){
			srand(time(0));
			int x1=rand()%2;
			if(x1==1){
				cout<<"你打出爆击他-"<<a/2<<"滴血"<<endl;
				Sleep(200);
				y-=a/2;
			}
		}
		if(su==1){
			srand(time(0));
			int x1=rand()%2;
			if(x1==1){
				cout<<"你打出连击他-"<<a/2<<"滴血"<<endl;
				Sleep(200);
				y-=a/2;
			}
		}
		if(ran1==1){
			cout<<"你烧了他"<<y/100+x/100<<endl;
			y-=y/100;
			y-=x/100;
		}
		for(int i=1;i<=i11;i++){
			if(hh[i]<=0)continue;
			srand(time(0));
			int x1x=rand()%3;
			if(x1x==2){
				cout<<cw[i].nm<<"用";
				int h=cw[i].cjn,gj=cw[i].j;
				if(h==1){
					cout<<"十万伏特"<<"打了他"<<cw[i].j*1.5<<"滴血"<<endl;
					y-=gj*1.5;
				}
				if(h==2){
					cout<<"喷火"<<"打了他"<<cw[i].j*1.4<<"滴血"<<endl;
					ran+=1;
					y-=gj*1.4;
				}
				if(h==3){
					cout<<"水弹"<<"打了他"<<cw[i].j*1.4<<"滴血"<<endl;
					y-=gj*1.4;
					df=0;
				}
				if(h==4){
					cout<<"藤蔓抽打"<<"打了他"<<cw[i].j*1.4<<"滴血"<<endl;
					y-=gj*1.4;
					hh[i]+=gj/3;
				}
				if(h==5){
					cout<<"放电"<<"打了他"<<cw[i].j*1.5<<"滴血"<<endl;
					y-=gj*1.5;
				}
				if(h==6){
					cout<<"火雨"<<"打了他"<<cw[i].j*1.2<<"滴血"<<endl;
					y-=gj*1.2;
					ran+=2;
				}
				if(h==7){
					cout<<"尖刺重击"<<"打了他"<<cw[i].j*1.5<<"滴血"<<endl;
					y-=gj*1.5;
				}
				if(h==8){
					cout<<"巨石"<<"打了他"<<cw[i].j*1.3<<"滴血"<<endl;
					y-=gj*1.2;
					df=1;
					hh[i11]+=gj/4;
				}
				Sleep(150);
			}else{
				cout<<cw[i].nm<<"打了他"<<cw[i].j<<"滴血"<<endl;
				Sleep(100);
				y-=cw[i].j;
			}
			cout<<"他打了"<<cw[i].nm<<x<<"滴血"<<endl;
			Sleep(100);
			hh[i]-=x;
			cw[i].jy+=1;
			cout<<cw[i].nm<<"回了"<<cnt<<"滴血"<<endl;
			hh[i]+=cnt;
			if(cw[i].jy>=cw[i].ccnt*5+10){
				cw[i].jy-=cw[i].ccnt*10;
				cw[i].ccnt++;
				cw[i].j+=cw[i].ccnt*15;
				cw[i].x+=cw[i].ccnt*75;
				cout<<cw[i].nm<<"升级了"<<endl;
				Sleep(1000);
			}
		}
		srand(time(0));
		int x11=rand()%20;
		if(x11==2){
			cout<<"他抵挡了"<<a/3<<"的伤害"<<endl;
			Sleep(100);
			b++;
			y+=a/3;
		}
		if(ran>0){
			ran--;
			cout<<"敌方因燃烧血量-"<<abs(y/30)<<endl;
			Sleep(100);
			y-=abs(y/30);
		}
		if(jian>0){
			jian--;
			cout<<"敌方因天上掉下的箭射中了他血量-"<<abs(a/20)+20<<endl;
			Sleep(100);
			y-=abs(y/20);
			y-=20;
		}
		if(fushi==1){
			cout<<"你腐蚀他"<<abs(y/25)<<"滴血"<<endl;
			Sleep(200);
			y-=abs(y/25);
		}
		if(fuxue==1){
			cout<<"因失血他-"<<abs(y/40)<<"滴血"<<endl;
			Sleep(200);
			y-=abs(y/40);
		}
		if(du1>=1){
			du1--;
			cout<<"因中毒他-"<<abs(y/40)+2<<"滴血"<<endl;
			Sleep(200);
			y-=abs(y/40);
			y-=2;
		}
		if(du2>=1){
			du2--;
			cout<<"因中毒他-"<<abs(y/25)+8<<"滴血"<<endl;
			Sleep(200);
			y-=abs(y/25);
			y-=8;
		}
		if(df==1){
			srand(time(0));
			int x1=rand()%8;
			if(x1==1||x1==0){
				cout<<"他开了大招你 -"<<x*2<<"滴血"<<endl;
				b1-=x*2;
				srand(time(0));
				int x1x=rand()%8;
				if(x1x==3){
					cout<<"他打出爆击你-"<<x/2<<"滴血"<<endl;
					Sleep(200);
					b1-=x/2;
				}
				Sleep(100);
			}else if(x1==2||x1==3){
				cout<<"他用了技能二你 -"<<x*1.5<<"滴血"<<endl;
				b1-=x*1.5;
				dr=1;
				Sleep(100);
			}else if(x1>=4&&x1<=6){
				cout<<"他用了技能一你 -"<<x*1.1<<"滴血"<<endl;
				b1-=x*1.1;
				srand(time(0));
				int dj=rand()%8;
				if(dj==0||dj==2){
					cout<<"他击晕了你"<<endl;
					nyun=1;
				}
				Sleep(100);
			}else{
				cout<<"他攻击了你 -"<<x<<"滴血"<<endl;
				b1-=x;
				Sleep(100);
			}
		}
		if(dr==1){
			cout<<"因中毒你-"<<abs(b1/40)+2<<"滴血"<<endl;
			Sleep(200);
			b1-=abs(b1/40);
			b1-=2;
		}
		if(jia==1){
			srand(time(0));
			int x1=rand()%10;
			if(x1==1){
				cout<<"你抵挡了"<<x/3<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/3;
			}
			if(x1==2){
				cout<<"你抵挡了"<<x/5<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/5;
			}
			if(x1==3){
				cout<<"你抵挡了"<<x/10<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/10;
			}
		}
		if(fs==1){
			cout<<"你反伤了他"<<x/35<<"滴血"<<endl;
			y-=x/35;
		}
		if(jia1==1){
			srand(time(0));
			int x1=rand()%10;
			if(x1==1){
				cout<<"你抵挡了"<<x<<"的伤害"<<endl;
				Sleep(100);
				b1+= x;
			}
			if(x1==2){
				cout<<"你抵挡了"<<x/2<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/2;
			}
			if(x1==3){
				cout<<"你抵挡了"<<x/4<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/4;
			}
			if(x1==4){
				cout<<"你抵挡了"<<x/9<<"的伤害"<<endl;
				Sleep(100);
				b1+= x/9;
			}
		}
		Sleep(1000);
	}
	return 1;
}
void huazhan(){
	system("cls");
	cout<<" 蒙娜丽莎的微笑"<<endl;
	cout<<"  ########"<<endl;
	cout<<" ##########"<<endl;
	cout<<" #  ^   ^ #"<<endl;
	cout<<" #    &   #"<<endl;
	cout<<" #   ___  #"<<endl;
	cout<<" ##########"<<endl;
	Sleep(2000);
	system("cls");
	cout<<" 坤哥的头"<<endl;
	cout<<"     ^    "<<endl;
	cout<<"   '  '  "<<endl;
	cout<<"  '*  *'"<<endl;
	cout<<" '   _  '"<<endl;
	cout<<". | ___ | ."<<endl;
	Sleep(2000);
	system("cls");
	cout<<"   牢大"<<endl;
	cout<<" ##########"<<endl;
	cout<<" #  -   - #"<<endl;
	cout<<" #    $   #"<<endl;
	cout<<" #   ---  #"<<endl;
	cout<<" ##########"<<endl;
	cout<<" & 冰红茶 &"<<endl;
	cout<<" &&&&&&&&&&"<<endl;
	Sleep(2000);
	system("cls");
	return ;
}
void shangdian(){
	cout<<"(1)青龙偃月刀 1000金币或10钻石"<<endl;
	Sleep(300);
	cout<<"(2)藤甲 200金币或2钻石"<<endl;
	Sleep(300);
	cout<<"(3)城市升级 100金币或1钻石"<<endl;
	Sleep(300);
	cout<<"(4)加命丹 300金币或3钻石"<<endl;
	Sleep(300);
	cout<<"(5)宝刀 100金币或1钻石"<<endl;
	Sleep(300);
	cout<<"(6)匕首 10金币"<<endl;
	Sleep(300);
	cout<<"(7)小镇升级 20金币"<<endl;
	Sleep(300);
	cout<<"(8)横扫千军 1800金币或18钻石"<<endl;
	Sleep(300);
	cout<<"(9)回血 400金币或4钻石"<<endl;
	Sleep(300);
	cout<<"(10)肘击 800金币或8钻石"<<endl;
	Sleep(300);
	cout<<"(11)寒冰尖刺 1100金币或11钻石"<<endl;
	Sleep(300);
	cout<<"(12)激光炮 300金币或3钻石"<<endl;
	Sleep(300);
	cout<<"(13)打狗棒法 700金币或7钻石"<<endl;
	Sleep(300);
	cout<<"(14)泣血之刃 80钻石"<<endl;
	Sleep(300);
	cout<<"(15)宗师长剑 50钻石"<<endl;
	Sleep(300);
	cout<<"(16)天荒锤 3000金币"<<endl;
	Sleep(300);
	cout<<"(17)麟甲战衣 1500金币"<<endl;
	Sleep(300);
	cout<<"(18)破天战甲 4000金币"<<endl;
	Sleep(300);
	cout<<"(19)抽奖 4000金币"<<endl;
	Sleep(300);
	cout<<"(20)经验药水 100金币或1钻石"<<endl;
	Sleep(300);
	cout<<"(21)画展票 20金币"<<endl;
	Sleep(300);
	int y;
	cin>>y;
	if(y==1)
	{
		if(money1<1000 && money2<10)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			a+=150;
			if(money1>=1000)
			{
				money1-=1000;
			}
			else
			{
				money2-=10;
			}
		}
	}
	if(y==2)
	{
		if(money1<200 && money2<2)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			b+=30;
			if(money1>=200)
			{
				money1-=200;
			}
			else
			{
				money2-=2;
			}
		}
	}
	if(y==3)
	{
		if(money1<100 && money2<1)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			d+=6;
			if(money1>=100)
			{
				money1-=100;
			}
			else
			{
				money2-=1;
			}
		}
	}
	if(y==4)
	{
		if(money1<300 && money2<3)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			c+=1;
			if(money1>=300)
			{
				money1-=300;//yanziwei88
			}
			else
			{
				money2-=3;
			}
		}
	}
	if(y==5)
	{
		if(money1<100 && money2<1)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			a+=11;
			if(money1>=100)
			{
				money1-=100;
			}
			else
			{
				money2-=1;
			}
		}
	}
	if(y==6)
	{
		if(money1<10 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			a+=1;
			if(money1>=10)
			{
				money1-=10;
			}
		}
	}
	if(y==7)
	{
		if(money1<20 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			d+=1;
			if(money1>=20)
			{
				money1-=20;
			}
		}
	}
	if(y==8)
	{
		if(money1<1800&&money2<18 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[4]=1;
			if(money1>=1800)
			{
				money1-=1800;
			}else{
				money2-=18;
			}
		}
	}
	if(y==9)
	{
		if(money1<400&&money2<4 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[5]=1;
			if(money1>=400)
			{
				money1-=400;
			}else{
				money2-=4;
			}
		}
	}
	if(y==10)
	{
		if(money1<800&&money2<8 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[6]=1;
			if(money1>=800)
			{
				money1-=800;
			}else{
				money2-=8;
			}
		}
	}
	if(y==11)
	{
		if(money1<1100&&money2<11 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[7]=1;
			if(money1>=1100)
			{
				money1-=1100;
			}else{
				money2-=11;
			}
		}
	}
	if(y==12)
	{
		if(money1<300&&money2<3 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[8]=1;
			if(money1>=300)
			{
				money1-=300;
			}else{
				money2-=3;
			}
		}
	}
	if(y==13)
	{
		if(money1<700&&money2<7 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jnn[9]=1;
			if(money1>=700)
			{
				money1-=700;
			}else{
				money2-=7;
			}
		}
	}
	if(y==14)
	{
		if(money2<80 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			a+=400;
			xx=1;
			if(money2>=80)
			{
				money2-=80;
			}
		}
	}
	if(y==15)
	{
		if(money2<50 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			bj=1;
			a+=300;
			if(money2>=50)
			{
				money2-=50;
			}
		}
	}
	if(y==16)
	{
		if(money1<3000 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			a+=260;
			jnn[13]=1;
			if(money1>=3000)
			{
				money1-=3000;
			}
		}
	}
	if(y==17)
	{
		if(money1<1500 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			b+=100;
			jia=1;
			if(money1>=1500)
			{
				money1-=1500;
			}
		}
	}
	if(y==18)
	{
		if(money1<4000 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			b+=200;
			jia1=1;
			if(money1>=4000)
			{
				money1-=4000;
			}
		}
	}
	if(y==19)
	{
		if(money1<4000 )
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			srand(time(0));
			int f=rand()%8;
			if(f==1){
				cout<<"你获得了皮卡丘"<<endl;
				cw[i11].nm="皮卡丘";
				cw[i11].j=100;
				cw[i11].x=1500;
				cw[i11].cjn=1;
				i11++;
			}
			if(f==2){
				cout<<"你获得了小火龙"<<endl;
				cw[i11].nm="小火龙";
				cw[i11].j=150;
				cw[i11].x=1200;
				cw[i11].cjn=2;
				i11++;
			}
			if(f==3){
				cout<<"你获得了杰尼龟"<<endl;
				cw[i11].nm="杰尼龟";
				cw[i11].j=80;
				cw[i11].x=2000;//yanziwei88
				i11++;
			}
			if(f==4){
				cout<<"你获得了妙蛙种子"<<endl;
				cw[i11].nm="妙蛙种子";
				cw[i11].j=90;
				cw[i11].x=1800;
				cw[i11].cjn=4;
				i11++;
			}
			if(f==5||f==0){
				cout<<"你获得了小电狐"<<endl;
				cw[i11].nm="小电狐";
				cw[i11].j=100;
				cw[i11].x=1300;
				cw[i11].cjn=5;
				i11++;
			}
			if(f==6){
				cout<<"你获得了小火鸟"<<endl;
				cw[i11].nm="小火鸟";
				cw[i11].j=120;
				cw[i11].x=1100;
				cw[i11].cjn=6;
				i11++;
			}
			if(f==7){
				cout<<"你获得了小刺球"<<endl;
				cw[i11].nm="小刺球";
				cw[i11].j=110;
				cw[i11].x=1200;
				cw[i11].cjn=7;
				i11++;
			}
			if(f==8){
				cout<<"你获得了小石熊"<<endl;
				cw[i11].nm="小石熊";
				cw[i11].j=80;
				cw[i11].x=1800;
				cw[i11].cjn=8;
				i11++;
			}
			Sleep(1000);
			if(money1>=4000)
			{
				money1-=4000;
			}
		}
	}
	if(y==20)
	{
		if(money1<100 && money2<1)
		{
			cout<<"钱不够"<<endl;
			Sleep(300);
		}
		else
		{
			jy+=100;
			if(money1>=100)
			{
				money1-=100;
			}
			else
			{
				money2-=1;
			}
		}
	}
	if(y==21)
	{
		if(money1<20 )
		{
			cout<<"钱不够"<<endl;//yanziwei88
			Sleep(300);
		}
		else
		{
			huazhan();
			if(money1>=20)
			{
				money1-=20;
			}
		}
	}
	Sleep(1000);
	system("cls");
	return ;
}
void denji(){
	if(cnt<=20){
		cout<<"兵"<<endl;
	}else if(cnt<=40){
		cout<<"士"<<endl;
	}else if(cnt<=80){
		cout<<"将"<<endl;
	}else if(cnt<=120){
		cout<<"王"<<endl;
	}else if(cnt<=180){
		cout<<"主"<<endl;
	}else if(cnt<=240){
		cout<<"皇"<<endl;
	}else if(cnt<=300){
		cout<<"尊"<<endl;
	}else if(cnt<=400){
		cout<<"帝"<<endl;
	}else if(cnt<=500){
		cout<<"练气"<<endl;
	}else if(cnt<=700){
		cout<<"巩基"<<endl;
	}else if(cnt<=800){
		cout<<"金丹"<<endl;
	}else if(cnt<=1000){
		cout<<"元婴"<<endl;
	}else if(cnt<=1200){
		cout<<"化神"<<endl;
	}else if(cnt<=1500){
		cout<<"神"<<endl;
	}else if(cnt<=2000){
		cout<<"超神"<<endl;
	}else if(cnt<=2500){
		cout<<"真神"<<endl;
	}else if(cnt<=3000){
		cout<<"神王"<<endl;
	}else if(cnt<=4000){
		cout<<"神尊"<<endl;
	}else if(cnt<=5000){
		cout<<"圣尊"<<endl;
	}else if(cnt<=7000){
		cout<<"至尊"<<endl;
	}else if(cnt<=9000){
		cout<<"天尊"<<endl;
	}else if(cnt<=12000){
		cout<<"无敌强者"<<endl;
	}else if(cnt<=15000){
		cout<<"无敌强者 青铜3"<<endl;
	}else if(cnt<=18000){
		cout<<"无敌强者 青铜2"<<endl;
	}else if(cnt<=20000){
		cout<<"无敌强者 青铜1"<<endl;
	}else if(cnt<=25000){
		cout<<"无敌强者 白银3"<<endl;
	}else if(cnt<=30000){
		cout<<"无敌强者 白银2"<<endl;
	}else if(cnt<=35000){
		cout<<"无敌强者 白银1"<<endl;
	}else if(cnt<=40000){
		cout<<"无敌强者 黄金5"<<endl;
	}else if(cnt<=45000){
		cout<<"无敌强者 黄金4"<<endl;
	}else if(cnt<=50000){
		cout<<"无敌强者 黄金3"<<endl; //yanziwei88
	}else if(cnt<=55000){
		cout<<"无敌强者 黄金2"<<endl;
	}else if(cnt<=60000){
		cout<<"无敌强者 黄金1"<<endl;
	}else if(cnt<=70000){
		cout<<"无敌强者 钻石5"<<endl;
	}else if(cnt<=80000){
		cout<<"无敌强者 钻石4"<<endl;
	}else if(cnt<=90000){
		cout<<"无敌强者 钻石3"<<endl;
	}else if(cnt<=100000){
		cout<<"无敌强者 钻石2"<<endl;
	}else if(cnt<=110000){
		cout<<"无敌强者 钻石1"<<endl;
	}else{
		cout<<"无敌"<<endl;
	}
	return ;
}
void xiulian(){
	if(cnt%15!=0)
	{
		if(jy<2*cnt){
			cout<<"经验不够"<<endl;
			Sleep(400);
			system("cls");
			return ;
		}
		jy-=2*cnt;
		srand(time(0));
		int nm=rand()%30;
		if(nm==6||nm==13||nm==2||nm==17){
			cout<<"失败了"<<endl;
			jy+=cnt;
			Sleep(400);
			system("cls");
			return ;
		}
		if(zz==-1)b+=2;
		if(zz==1){
			a++;
		}
		if(zz==2){
			a++;
			b++;
		}
		if(zz==3){
			a++;
			b+=2;
		}
		if(zz==4){
			a+=2;
		}
		b+=zz*3;
		b++;
		tl+=zz;
		cout<<"成功了!!"<<endl;
		cnt+=1;
		if(cnt>=10){
			jnn[1]=1;
		}
		if(cnt>=40){
			jnn[2]=1;
		}
		if(cnt>=100){
			jnn[3]=1;
		}
		if(cnt>=300){
			jnn[14]=1;
		}
		if(cnt>=800){
			jnn[15]=1;
		}
		if(cnt>=2000){
			jnn[16]=1;
		}
		if(cnt==3500){
			jnn[17]=1;
		}
		Sleep(800);
	}else{
		if(d>=1)
		{
			d--;
			cnt+=1;
		} else{
			cout<<"你遇见了瓶颈"<<endl;
			return ;
		}
		a+=3;
		b+=5;
		if(cnt==10){
			jnn[1]=1;
		}
		if(cnt==40){
			jnn[2]=1;
		}
		if(cnt==100){
			jnn[3]=1;
		}
		if(cnt==300){
			jnn[11]=1;
		}
		if(cnt==800){
			jnn[12]=1;
		}
		if(cnt==2000){
			jnn[13]=1;
		}
		if(cnt==3500){
			jnn[14]=1;
		}
	}
	Sleep(500);
	system("cls");
	return ;
}
void renwu(){
	cl[0]=-1;
	srand(time(0));
	int rw=rand()%8;
	if(cl[rnw]>=0){
		cout<<"你完成了"<<endl;//yanziwei88
		money1+=jl1;
		money2+=jl2;
		jy+=100;
		rnw=0;
	}
	if(rw==2){
		cout<<"e星受到了恶魔的攻击"<<endl;
		cout<<"任务 击杀十只恶魔"<<endl;
		cout<<"奖励 100金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[1]-=10;
			jl1=100;
			rnw=1;
		}else{
			cout<<"算了我找其他人"<<endl;
		}

	}
	if(rw==1){
		cout<<"我想要赤火结晶"<<endl;
		cout<<"任务 获得15个赤火结晶"<<endl;
		cout<<"奖励 50金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[2]-=15;
			jl1=50;
			rnw=2;
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==0){
		cout<<"我想要龙晶"<<endl;
		cout<<"任务 获得5个龙晶"<<endl;
		cout<<"奖励 10钻石"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[3]-=5;
			jl2=10;
			rnw=3;
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==3){
		cout<<"我想要跟人切磋"<<endl;
		cout<<"任务 打赢他(有惩罚)"<<endl;
		cout<<"奖励 2钻石"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			bool l=zhan(1000,3000);
			if(l){
				cout<<"打赢了 钻石+2"<<endl;
				money2+=2;
			}else{
				cout<<"菜就多练 金币-10"<<endl;
				money1-=10;
			}
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==4){
		cout<<"我想要陨铁"<<endl;
		cout<<"任务 获得3块陨铁"<<endl;
		cout<<"奖励 30金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[4]-=13;
			jl1=43;
			rnw=4;
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==5){
		cout<<"我想要天刚"<<endl;
		cout<<"任务 获得18块天刚"<<endl;
		cout<<"奖励 53金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[5]-=18;
			jl1=53;
			rnw=5;
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==6){
		cout<<"我想要天土"<<endl;
		cout<<"任务 获得7份天土"<<endl;
		cout<<"奖励 23金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[6]-=7;
			jl1=23;
			rnw=6;
		}else{
			cout<<"算了我找其他人"<<endl;
		}
	}
	if(rw==7){
		cout<<"j星受到了小偷的偷切"<<endl;
		cout<<"任务 抓捕三个小偷"<<endl;
		cout<<"奖励 20金币"<<endl;
		cout<<"1.是 0.否"<<endl;
		char d;
		cin>>d;
		if(d=='1'){
			cl[7]-=3;
			jl1=20;
			rnw=7;
		}else{
			cout<<"算了我找其他人"<<endl;
		}

	}
	Sleep(900);
	system("cls");
}
void xinxi(){
	cout<<"e星 (1)"<<endl;
	Sleep(100);
	cout<<"j星 (2)"<<endl;
	Sleep(100);
	cout<<"赤火星 (3)"<<endl;
	Sleep(100);
	cout<<"陨铁星 (4)"<<endl;
	Sleep(100);
	cout<<"寒星 (5)"<<endl;
	Sleep(100);
	int xin;
	cin>>xin;
	if(xin==1){
		while(1){
			cout<<"你来到了e星 1.探索 0.离开"<<endl;
			int pd;
			cin>>pd;
			if(pd==0){
				cout<<"你离开了"<<endl;
				break;
			}else{
				if(tl<=3){
					cout<<"你没体力了"<<endl;
					continue;
				}
				tl-=3;
				srand(time(0));
				int f=rand()%10;
				if(f==5)cout<<"你啥也没遇到"<<endl;
				if(f==3||f==4||f==6){
					cout<<"前面有一个恶霸 1.为民除害 0.离他远点";
					int eb;
					cin>>eb;
					if(eb==1){
						bool l=zhan(1000,5000);
						if(l)
						{
							cout<<"你打赢了"<<endl;
							jy+=10;
							srand(time(0));
							int jjll=rand()%10;
							if(jjll==1){
								cout<<"公安局见你打赢了恶霸给你颁发了见义勇为奖"<<endl;
								Sleep(500);
								cout<<"金币+100"<<endl;
								jy+=30;
								money1+=100;
								Sleep(600);
							}else{
								cout<<"人们恭送着你离开"<<endl;
							}
						}
						else
						{
							if(c==0){
								cout<<"你死了" <<endl;
								s=1;
								return ;
							}
							c--;
						}
					}else{
						cout<<"你跑了"<<endl;
					}
				}
				if(f>=7&&f<=10){
					cout<<"前面有一个恶魔 1.打他 0.离开";
					int eb;
					cin>>eb;
					if(eb==1){
						bool l=zhan(2000,8000);
						if(l)
						{
							cout<<"你打赢了"<<endl;
							cl[1]++;
							jy+=20;
							srand(time(0));
							int jjll=rand()%10;
							if(jjll==1){
								cout<<"公安局见你杀了恶魔给你了200金币"<<endl;
								jy+=20;
								money1+=200;
								Sleep(600);
							}else{
								cout<<"人们恭送着你离开"<<endl;
							}
						}
						else
						{
							if(c==0){
								cout<<"你死了" <<endl;
								s=1;
								return ;
							}
							c--;
						}
					}else{
						cout<<"你跑了"<<endl;
					}
				}
				if(f==2){
					srand(time(0));
					int jjbb=rand()%1;
					cout<<"你捡到了"<<jjbb+1<<"份天土"<<endl;
					cl[6]+=(jjbb+1);

				}
				if(f==1){
					srand(time(0));
					int jjbb=rand()%2;
					cout<<"你捡到了"<<jjbb<<"颗钻石"<<endl;
					money2+=jjbb;

				}
				if(f==0){
					srand(time(0));
					int bz=rand()%2;
					if(bz==0){
						cout<<"你获得了暗影战斧"<<endl;
						a+=200;
						pjs+=80;
					}
					if(bz==1){
						cout<<"你获得了反伤刺甲"<<endl;
						b+=180;
						fs=1;
					}
					if(bz==2){
						cout<<"你获得了虚无法杖"<<endl;
						a+=250;
					}
				}
			}
		}
	}
	if(xin==2){
		while(1){
			cout<<"你来到了j星 1.探索 0.离开"<<endl;
			int pd;
			cin>>pd;
			if(pd==0){
				cout<<"你离开了"<<endl;
				break;
			}else{
				if(tl<=2){
					cout<<"你没体力了"<<endl;
					continue;
				}
				tl-=2;
				srand(time(0));
				int f=rand()%10;
				if(f==5)cout<<"你啥也没遇到"<<endl;
				if(f==3||f==4||f==6){
					cout<<"前面有一个商人 1.跟他聊聊 0.离他远点";
					int eb;
					cin>>eb;
					if(eb==1){
						cout<<" ^v^ hi"<<endl;
						 cout<<"机关枪 (1)100金币"<<endl;
						 cout<<"攻击提升丹 (2)30金币"<<endl;
						 int y;
						 cin>>y;
						 if(y==1){
						 	if(money1<100){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	money1-=100;
							 	a+=20;
							 	jnn[15]=1;
							 }
						}
						 if(y==2){
						 	if(money1<30){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	money1-=30;
							 	srand(time(0));
								int gjts=rand()%30;
								a+=gjts;
							 }
						}
					}else{
						cout<<"你走了"<<endl;
					}
				}
				if(f>=7&&f<=10){
					cout<<"前面有一个小偷 1.打他 0.离开";
					int eb;
					cin>>eb;
					if(eb==1){
						bool l=zhan(1500,6000);
						if(l)
						{
							cout<<"你打赢了"<<endl;
							jy+=20;
							cl[7]++;
							srand(time(0));
							int jjll=rand()%10;
							if(jjll==1){
								cout<<"公安局见你抓住了小偷给你颁发了热心市民奖"<<endl;
								jy+=20;
								Sleep(500);
								cout<<"金币+30"<<endl;
								money1+=30;
							}else{
								cout<<"做好事不留名"<<endl;
							}
						}
						else
						{
							if(c==0){
								cout<<"你死了" <<endl;
								s=1;
								return ;
							}
							c--;
						}
					}else{
						cout<<"你跑了"<<endl;
					}
				}
				if(f==2){
					srand(time(0));
					int jjbb=rand()%10;
					cout<<"你捡到了"<<jjbb<<"枚金币"<<endl;
					money1+=jjbb;

				}
				if(f==1){
					srand(time(0));
					int jjbb=rand()%1;
					cout<<"你捡到了"<<jjbb<<"颗龙晶"<<endl;
					cl[3]+=jjbb;
				}
				if(f==0){
					srand(time(0));
					int bz=rand()%2;
					if(bz==2){
						cout<<"你获得了双剑"<<endl;
						a+=120;
					}
					if(bz==0){
						cout<<"你获得了不死金甲"<<endl;
						b+=150;
						c++;
					}
					if(bz==1){
						cout<<"你获得了暗影法杖"<<endl;
						a+=150;
						jnn[16]=1;
					}
				}
			}
		}
	}
	if(xin==3){
		while(1){
			cout<<"你来到了赤火星 1.探索 0.离开"<<endl;
			int pd;
			cin>>pd;
			if(pd==0){
				cout<<"你离开了"<<endl;
				break;
			}else{
				if(tl<=2){
					cout<<"你没体力了"<<endl;
					continue;
				}
				tl-=2;
				srand(time(0));
				int f=rand()%10;
				if(f==5)cout<<"你啥也没遇到"<<endl;
				if(f==3||f==4||f==6){
					cout<<"前面有一个商人 1.跟他聊聊 0.离他远点";
					int eb;
					cin>>eb;
					if(eb==1){
						cout<<" ^v^ hi"<<endl;
						 cout<<"赤火结晶 (1)100金币"<<endl;
						 cout<<"血量提升丹 (2)50金币"<<endl;
						 int y;
						 cin>>y;
						 if(y==1){
						 	if(money1<100){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	cl[2]++;
							 	money1-=100;
							 }
						}
						 if(y==2){
						 	if(money1<50){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	money1-=50;
							 	srand(time(0));
								int gjts=rand()%80;
								a+=gjts;
								a+=20;
							 }
						}
					}else{
						cout<<"你走了"<<endl;
					}
				}
				if(f>=7&&f<=10){
					cout<<"前面有一个赤火怪 1.打他 0.离开";
					int eb;
					cin>>eb;
					if(eb==1){
						bool l=zhan(1500,6000);
						if(l)
						{
							cout<<"你打赢了"<<endl;
							jy+=40;
							srand(time(0));
							int jjll=rand()%10;
							if(jjll==1){
								cout<<"你获得了1块赤火结晶"<<endl;
								Sleep(500);
								cl[2]++;
							}else{
								cout<<"啥也没有"<<endl;
							}
						}
						else
						{
							if(c==0){
								cout<<"你死了" <<endl;
								s=1;
								return ;
							}
							c--;
						}
					}else{
						cout<<"你跑了"<<endl;
					}
				}
				if(f==2){
					srand(time(0));
					int jjbb=rand()%10;
					cout<<"你捡到了"<<jjbb<<"枚金币"<<endl;
					money1+=jjbb;

				}
				if(f==1){
					srand(time(0));
					int jjbb=rand()%3;
					cout<<"你捡到了"<<jjbb<<"赤火结晶"<<endl;
					cl[2]+=jjbb;
				}
				if(f==0){
					srand(time(0));
					int bz=rand()%200;
					if(bz!=0&&bz<=100){
						cout<<"你获得了烈火刀"<<endl;
						a+=120;
						ran1=1;
					}
					if(bz==0){
						cout<<"你获得了朱雀神火"<<endl;
						a+=1000;
						b+=8000;
						jnn[17]=1;
					}
					if(bz>100){
						cout<<"你获得了火石"<<endl;
						b+=150;
					}
				}
			}
		}
	}
	if(xin==4){
		while(1){
			cout<<"你来到了陨铁星 1.探索 0.离开"<<endl;
			int pd;
			cin>>pd;
			if(pd==0){
				cout<<"你离开了"<<endl;
				break;
			}else{
				if(tl<=2){
					cout<<"你没体力了"<<endl;
					continue;
				}
				tl-=2;
				srand(time(0));
				int f=rand()%10;
				if(f==5)cout<<"你啥也没遇到"<<endl;
				if(f==3||f==4||f==6){
					cout<<"前面有一个商人 1.跟他聊聊 0.离他远点";
					int eb;
					cin>>eb;
					if(eb==1){
						cout<<" ^v^ hi"<<endl;
						 cout<<"碎星锤 (1)200金币"<<endl;
						 cout<<"游击弯刀 (2)1200金币"<<endl;
						 cout<<"体力丹 (3)200金币"<<endl;
						 int y;
						 cin>>y;
						 if(y==1){
						 	if(money1<200){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	a+=60;
								pjs+=30;
							 	money1-=100;
							 }
						}
						 if(y==2){
						 	if(money1<1200){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	money1-=1200;
							 	jnn[18]=1;
							 }
						}
						 if(y==3){
						 	if(money1<200){
						 		cout<<"(╬▔皿▔)╯:没钱别来丢人"<<endl;
						 		Sleep(600);
							 }else{
							 	money1-=200;
							 	tl+=20;
							 }
						}
					}else{
						cout<<"你走了"<<endl;
					}
				}
				if(f>=7&&f<=10){
					cout<<"前面有一个天刚怪 1.打他 0.离开 !(危险)";
					int eb;
					cin>>eb;
					if(eb==1){
						bool l=zhan(1500,50000);
						if(l)
						{
							cout<<"你打赢了"<<endl;
							jy+=80;
							srand(time(0));
							int jjll=rand()%10;
							if(jjll==1){
								cout<<"你获得了1块天刚"<<endl;
								Sleep(500);
								cl[5]++;
							}else{
								cout<<"啥也没有"<<endl;
							}
						}
						else
						{
							if(c==0){
								cout<<"你死了" <<endl;
								s=1;
								return ;
							}
							c--;//yanziwei88
						}
					}else{
						cout<<"你跑了"<<endl;
					}
				}
				if(f==2){
					srand(time(0));
					int jjbb=rand()%10;
					cout<<"你捡到了"<<jjbb<<"枚金币"<<endl;
					money1+=jjbb;

				}
				if(f==1){
					srand(time(0));
					int jjbb=rand()%3;
					cout<<"你捡到了"<<jjbb<<"陨铁"<<endl;
					cl[4]+=jjbb;
				}
				if(f==0){
					srand(time(0));
					int bz=rand()%1;
					if(bz==1){
						cout<<"你获得了魔刀"<<endl;
						cout<<"你要吗?(1)要 (2)不要"<<endl;
						bool k;
						cin>>k;
						if(k==0){
							return ;
						}
						a+=700;
						b-=2000;
						ran1=1;
					}
					if(bz==0){
						cout<<"你获得了5块天刚"<<endl;
						cl[5]+=5;
					}
				}
			}
		}
	}
	if(xin==5){
		while(1){
			cout<<"你来到了寒星 1.探索 0.离开"<<endl;
			int pd;
			cin>>pd;
			if(pd==0){
				cout<<"你离开了"<<endl;
				break;
			}else{
				if(tl<=20){
					cout<<"你没体力了"<<endl;
					continue;
				}
				tl-=2;
				srand(time(0));
				int f=rand()%10;
				if(f==5)cout<<"你啥也没遇到"<<endl;
				if(f==3||f==4||f==6){
					cout<<"前面有一个人 1.跟他聊聊 0.打劫";
					int eb;
					cin>>eb;
					if(eb==1){
						cout<<"你个sb"<<endl;
						Sleep(500);
						cout<<"他走了"<<endl;
					}else{
						bool l=zhan(100,500);
						if(l){
							cout<<"你抢劫了他100金币"<<endl;
							money1+=100;
							jy+=5;
							cout<<"他报警了"<<endl;
							bool l1=zhan(160,5000);
							if(l1){
								cout<<"你跑了"<<endl;
							}else{
								cout<<"你赔了1000金币"<<endl;
								money1-=0;
							}
						}else{
							cout<<"你被打飞了"<<endl;
							tl-=10;
						}
					}
				}
				if(f>=7&&f<=10){
					cout<<"前面有一本书 1.看 0.离开 ";
					int eb;
					cin>>eb;
					if(eb==0){
						cout<<"   *是x &是x好友 .是路 ^是树 @是怪物"<<endl;
						cout<<"^^^^.@^^^^"<<endl;
						cout<<"^^^..^^^^^"<<endl;
						cout<<"^^.%^^^^^^"<<endl;
						cout<<"^*.^^^^^^^"<<endl;
						cout<<"%:我去打他"<<endl;
						Sleep(5000);
						cout<<"^^^^.@^^^^"<<endl;
						cout<<"^^^.死^^^^^"<<endl;
						cout<<"^^.*^^^^^^"<<endl;
						cout<<"^..^^^^^^^"<<endl;
						cout<<"*:不!"<<endl;
						Sleep(5000);
						cout<<"^^^^.轰^^^^"<<endl;
						cout<<"^^^..^^^^^"<<endl;
						cout<<"^^..^^^^^^"<<endl;
						cout<<"^..^^^^^^^"<<endl;
						Sleep(5000);
						srand(time(0));
						int f=rand()%30;
						if(f==1){
							cout<<"^^^^.遗迹^^^"<<endl;
							cout<<"^^^..^^^^^"<<endl;
							cout<<"^^..^^^^^^"<<endl;
							cout<<"^..^^^^^^^"<<endl;
							cout<<"(1)过去 (2)不过去"<<endl;
							int gq;
							cin>>gq;
							if(gq==1){
								cout<<"你与里面的怪物打了起来"<<endl;
								bool l=zhan(10,100);
								if(l){
									bool l1=zhan(100,1000);
									if(l1){
										bool l2=zhan(1000,10000);
										if(l2){
											cout<<"你获得了宝藏1"<<endl;
											money1+=100;
											money2+=1;
											cout<<"(1)继续 (2)回去"<<endl;
											int jh;
											cin>>jh;
											if(jh==1){
												bool l3=zhan(5000,60000);
												if(l3){
													cout<<"你获得了宝藏2"<<endl;
													money1+=1000;
													money2+=10;
													cout<<"(1)继续 (2)回去!危险"<<endl;
													int jh1;
													cin>>jh1;
													if(jh1==1){
														bool l4=zhan(30000,300000);
														if(l4){
															cout<<"你获得了终极宝藏"<<endl;
															money1+=100000;
															money2+=1000;
															return ;
														}else{
															s=1;
															return ;
														}
													}else{
														return ;
													}
												}else{
													s=1;
													return ;
												}
											} else{
												return ;
											}
										}else{
											s=1;
											return ;
										}
									}else{
										s=1;
										return ;
									}
								}else{
									s=1;
									return ;
								}
							}else{
								cout<<"你走了"<<endl;
							}
							Sleep(5000);
						}else{
							cout<<"没了"<<endl;
						}
					}else{
						cout<<"你走了"<<endl;
					}
				}
				if(f==2){
					srand(time(0));
					int jjbb=rand()%10;
					cout<<"你捡到了"<<jjbb<<"枚金币"<<endl;
					money1+=jjbb;

				}
				if(f==1){
					srand(time(0));
					int jjbb=rand()%3;
					cout<<"你捡到了"<<jjbb<<"钻石"<<endl;
					jjbb+=jjbb;
				}
				if(f==0){
					cout<<"你获得1000金币"<<endl;
					money1+=1000;
				}
			}
		}
	}
	Sleep(500);
	system("cls");
}
void pt(){
	srand(time(0));
	int tb=rand()%30;
	if(tb==0){
		cout<<"你找到了玉玺"<<endl;
		cout<<"你卖了1500金币"<<endl;
		money1+=1500;
	}
	if(tb==1){
		cout<<"你找到了个春秋时期的玉石"<<endl;
		cout<<"你卖了1000金币"<<endl;
		money1+=1000;
	}
	if(tb==2){
		cout<<"你获得了狂暴双刃"<<endl;
		a+=110;
	}
	if(tb==3){
		cout<<"你获得了红莲斗篷"<<endl;
		b+=500;
	}
	if(tb==4){
		cout<<"你获得了狂风巨剑"<<endl;
		a+=80;
	}
	if(tb==5){
		cout<<"你获得了铠甲"<<endl;
		b+=200;
	}
	if(tb==6){
		cout<<"你获得了布甲"<<endl;
		b+=100;
	}
	if(tb>=7&&tb<=9){
		cout<<"你找到了个唐朝的玉镯"<<endl;
		cout<<"你卖了5钻石"<<endl;
		money2+=5;
	}
	if(tb>=10&&tb<=13){
		cout<<"你找到了个清朝的花瓶"<<endl;
		cout<<"你卖了400金币"<<endl;
		money1+=400;
	}
	if(tb>=14&&tb<=18){
		cout<<"你找到了个民国时期的花瓶"<<endl;
		cout<<"你卖了340金币"<<endl;
		money1+=340;
	}
	if(tb>=19&&tb<=23){
		cout<<"你找到了个翡翠"<<endl;
		cout<<"你卖了280金币"<<endl;
		money1+=280;
	}
	if(tb==24){
		cout<<"你找到了个大刀"<<endl;
		a+=15;
	}
	if(tb>=25&&tb<=26){
		cout<<"啥也没有"<<endl;
	}
	if(tb>=27){
		cout<<"你找到了一幅画"<<endl;
		cout<<"你卖了120金币"<<endl;
		money1+=120;
	}
	Sleep(800);
}
void gj(){
	srand(time(0));
	int tb=rand()%30;
	if(tb==0){
		cout<<"你找到了传国玉玺"<<endl;
		cout<<"你卖了18000金币"<<endl;
		money1+=18000;
	}
	if(tb==1){
		cout<<"你找到了个春秋时期的玉石"<<endl;
		cout<<"你卖了10000金币"<<endl;
		money1+=10000;
	}
	if(tb==2){
		cout<<"你获得了影刃"<<endl;
		a+=300;
		su=1;
	}
	if(tb==3){
		cout<<"你获得了红莲圣甲"<<endl;
		b+=1200;
	}
	if(tb==4){
		cout<<"你获得了风暴巨剑"<<endl;
		a+=260;
	}
	if(tb==5){
		cout<<"你获得了天涯甲"<<endl;
		b+=900;
	}
	if(tb==6){
		cout<<"你获得了陨铁甲"<<endl;
		b+=600;
	}
	if(tb>=7&&tb<=9){
		cout<<"你找到了个汉朝的玉石"<<endl;
		cout<<"你卖了52钻石"<<endl;
		money2+=52;
	}
	if(tb>=10&&tb<=13){
		cout<<"你找到了个宋朝的花瓶"<<endl;
		cout<<"你卖了5100金币"<<endl;
		money1+=5100;
	}
	if(tb>=14&&tb<=18){
		cout<<"你找到了个民国时期的花瓶"<<endl;
		cout<<"你卖了3600金币"<<endl;
		money1+=3600;
	}
	if(tb>=19&&tb<=23){
		cout<<"你找到了个翡翠"<<endl;
		cout<<"你卖了2600金币"<<endl;
		money1+=2600;
	}
	if(tb==24){
		cout<<"你找到了个虎齿刃"<<endl;
		a+=180;
	}
	if(tb==25){
		cout<<"你找到了一幅世界名画"<<endl;
		cout<<"你卖了2000金币"<<endl;
		money1+=2000;
	}
	if(tb>=26&&tb<=27){
		cout<<"你找到了一把锋利匕首"<<endl;
		a+=50;
	}
	if(tb==28){
		cout<<"运气不好 选了个破石头"<<endl;
		money1+=20;
	}
	if(tb>=29){
		cout<<"你找到了个现代的精美花瓶"<<endl;
		cout<<"你卖了360金币"<<endl;
		money1+=360;
	}
	Sleep(800);
}
void cs(){
	srand(time(0));
	int tb=rand()%30;
	if(tb==0){
		cout<<"你找到了星球精华"<<endl;
		cout<<"你卖了120000金币"<<endl;
		money1+=120000;
	}
	if(tb==1){
		cout<<"你找到了个春秋时期的玉石"<<endl;
		cout<<"你卖了80000金币"<<endl;
		money1+=80000;
	}
	if(tb==2){
		cout<<"你获得了暗影短刃"<<endl;
		a+=1800;
		su=1;
	}
	if(tb==3){
		cout<<"你获得了圣莲神甲"<<endl;
		b+=9500;
	}
	if(tb==4){
		cout<<"你获得了雷暴巨剑"<<endl;
		a+=1000;
	}
	if(tb==5){
		cout<<"你获得了皇甲"<<endl;
		b+=7000;
	}
	if(tb==6){
		cout<<"你获得了玉甲"<<endl;
		b+=600;
	}
	if(tb>=7&&tb<=9){
		cout<<"你找到了个原始时代的大宝剑"<<endl;
		cout<<"你卖了409钻石"<<endl;
		money2+=409;
	}
	if(tb>=10&&tb<=13){
		cout<<"你找到了个缅北的腰子"<<endl;
		cout<<"你卖了32400金币"<<endl;
		money1+=32400;
	}
	if(tb>=14&&tb<=18){
		cout<<"你找到了个不属于这个世界的石头"<<endl;
		cout<<"你卖了13600金币"<<endl;
		money1+=13600;
	}
	if(tb>=19&&tb<=23){
		cout<<"你找到了个紫色翡翠"<<endl;
		cout<<"你卖了8700金币"<<endl;
		money1+=8700;
	}
	if(tb==24){
		cout<<"你找到了个龙齿战刃"<<endl;
		a+=888;
	}
	if(tb==25){
		cout<<"你找到了一幅倒版猛娜丽莎的手枪"<<endl;
		cout<<"但你还是卖了5000金币"<<endl;
		money1+=5000;
	}
	if(tb>=26&&tb<=27){
		cout<<"你找到了一把惧色利刃"<<endl;
		a+=500;
	}
	if(tb==28){
		cout<<"运气不好 选了个破石头"<<endl;
		money1+=800;
	}
	if(tb>=29){
		cout<<"你找到了个现代的精美花瓶"<<endl;
		cout<<"你卖了3600金币"<<endl;
		money1+=3600;
	}
	Sleep(800);
}
void taobao(){
	cout<<"(1)普通淘宝 300金币"<<endl;
	cout<<"(2)高级淘宝 4000金币"<<endl;
	cout<<"(3)十连普通淘宝 2900金币"<<endl;
	cout<<"(4)十连高级淘宝 39500金币"<<endl;
	cout<<"(5)传说淘宝 10000金币"<<endl;
	int tb;
	cin>>tb;
	if(tb==1){
		if(money1<300){
			cout<<"没钱滚蛋"<<endl;
			Sleep(800);
			return ;
		}
		money1-=300;
		pt();
	}
	if(tb==2){
		if(money1<4000){
			cout<<"没钱滚蛋"<<endl;
			Sleep(800);
			return ;
		}
		money1-=4000;
		gj();
	}
	if(tb==3){
		if(money1<2900){
			cout<<"没钱滚蛋"<<endl;
			Sleep(800);
			return ;
		}
		money1-=2900;
		for(int i=1;i<=10;i++){
			pt();
		}
	}
	if(tb==4){
		if(money1<39500){
			cout<<"没钱滚蛋"<<endl;
			Sleep(800);
			return ;
		}
		money1-=39500;
		for(int i=1;i<=10;i++){
			gj();
		}
	}
	if(tb==5){
		if(money1<10000){
			cout<<"没钱滚蛋"<<endl;
			Sleep(800);
			return ;
		}
		money1-=10000;
		cs();
	}
	Sleep(1000);
	system("cls");
}
void caishu(){
	cout<<"1~100 (奖40元)(1)"<<endl;
	cout<<"1~1200 (奖200元)(2)"<<endl;
	int h;
	cin>>h;
	if(h==1){
		srand(time(0));
		int kkk=rand()%100;
		for(int i=6;i>=1;i--){
			cout<<"还剩"<<i<<"次"<<endl;
			int yj;
			cin>>yj;
			if(yj==kkk){
				cout<<"中了"<<endl;
				money1+=40;
				return ;
			}
			if(yj>kkk){
				cout<<"猜大了"<<endl;
			}else{
				cout<<"猜小了"<<endl;
			}
		}
	}
	if(h==2){
		srand(time(0));
		int kkk=rand()%1200;
		for(int i=10;i>=1;i--){
			cout<<"还剩"<<i<<"次"<<endl;
			int yj;
			cin>>yj;
			if(yj==kkk){
				cout<<"中了"<<endl;
				money1+=200;
				return ;
			}
			if(yj>kkk){
				cout<<"猜大了"<<endl;
			}else{
				cout<<"猜小了"<<endl;
			}
		}
	}
}
void caipiao(){
	cout<<"十连抽 (15元的)(5)"<<endl;
	cout<<"一百连抽 (10元的)(6)"<<endl;
	cout<<"去淘宝 (7)"<<endl;
	cout<<"猜数 (统一10元)(8)"<<endl;
	cout<<"猜奖 (50元)(9)"<<endl;
	char f;
	cin>>f;
	if(f=='1'){
		if(money1<10){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=10;
		srand(time(0));
		int nm=rand()%18;
		if(nm==0){
			cout<<"特等奖"<<endl;
			money1+=100;
		}
		if(nm==1){
			cout<<"一等奖"<<endl;
			money1+=80;//yanziwei88
		}
		if(nm==2){
			cout<<"二等奖"<<endl;
			money1+=60;
		}
		if(nm==3){
			cout<<"三等奖"<<endl;
			money1+=40;
		}
		if(nm==4){
			cout<<"四等奖"<<endl;
			money1+=15;
		}
		if(nm==5){
			cout<<"五等奖"<<endl;
			money1+=6;
		}
		if(nm>=6){
			cout<<"谢谢惠顾"<<endl;
		}
		Sleep(600);
	}
	if(f=='2'){
		if(money1<20){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=20;
		srand(time(0));
		int nm=rand()%24;
		if(nm==0){
			cout<<"特等奖"<<endl;
			money1+=100*3;
		}
		if(nm==1){
			cout<<"一等奖"<<endl;
			money1+=80*3;
		}
		if(nm==2){
			cout<<"二等奖"<<endl;
			money1+=60*3;
		}
		if(nm==3){
			cout<<"三等奖"<<endl;
			money1+=40*3;
		}
		if(nm==4){
			cout<<"四等奖"<<endl;
			money1+=15*3;
		}
		if(nm==5){
			cout<<"五等奖"<<endl;
			money1+=6*3;
		}
		if(nm>=6){
			cout<<"谢谢惠顾"<<endl;
		}
		Sleep(600);
	}
	if(f=='3'){
		if(money1<50){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=50;
		srand(time(0));
		int nm=rand()%44;
		if(nm==0){
			cout<<"特等奖"<<endl;
			money1+=100*7;
		}
		if(nm==1){
			cout<<"一等奖"<<endl;
			money1+=80*7;
		}
		if(nm==2){
			cout<<"二等奖"<<endl;
			money1+=60*7;
		}
		if(nm==3){
			cout<<"三等奖"<<endl;
			money1+=40*7;
		}
		if(nm==4){
			cout<<"四等奖"<<endl;
			money1+=15*7;
		}
		if(nm==5){
			cout<<"五等奖"<<endl;
			money1+=6*7;
		}
		if(nm>=6){
			cout<<"谢谢惠顾"<<endl;
		}
		Sleep(600);
	}
	if(f=='4'){
		if(money1<100){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=100;
		srand(time(0));
		int nm=rand()%90;
		if(nm==0){
			cout<<"特等奖"<<endl;
			money1+=100*13;
		}
		if(nm==1){
			cout<<"一等奖"<<endl;
			money1+=80*13;
		}
		if(nm==2){
			cout<<"二等奖"<<endl;
			money1+=60*13;
		}
		if(nm==3){
			cout<<"三等奖"<<endl;
			money1+=40*13;
		}
		if(nm==4){
			cout<<"四等奖"<<endl;
			money1+=15*13;
		}
		if(nm==5){
			cout<<"五等奖"<<endl;
			money1+=6*13;
		}
		if(nm>=6){
			cout<<"谢谢惠顾"<<endl;
		}
		Sleep(600);
	}
	if(f=='5'){
		if(money1<150){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=150;
		for(int cj=1;cj<=10;cj++){
			srand(time(0));
			int nm=rand()%64;
			srand(nm);
			int nm1=rand()%(nm+8);
			srand(nm);
			nm=rand()%(nm+nm1);
			nm=min(nm1-3,nm-2);
			srand(time(0));
			if(nm<0){
				int mn=rand()%5+1;
				nm=max(mn,nm+1);
			}
			if(nm==0){
				cout<<"特等奖"<<endl;
				money1+=170;
			}
			if(nm==1){
				cout<<"一等奖"<<endl;
				money1+=100;
			}
			if(nm==2){
				cout<<"二等奖"<<endl;
				money1+=70;
			}
			if(nm==3||nm==4){
				cout<<"三等奖"<<endl;
				money1+=40;
			}
			if(nm==5||nm==6||nm==7){
				cout<<"四等奖"<<endl;
				money1+=15;
			}
			if(nm>=8&&nm<=12){
				cout<<"五等奖"<<endl;
				money1+=8;
			}
			if(nm>=13&&nm<=15){
				cout<<"幸运奖"<<endl;
				money1+=2;
			}
			if(nm>=16){
				srand(time(0));
				int cj=rand()%3;
				if(cj==2)
				cout<<"谢谢惠顾"<<endl;
				if(cj==1)
				cout<<"再接再厉"<<endl;
				if(cj==0)
				cout<<"下次一定"<<endl;
			}
			Sleep(600);
		}
	}
	if(f=='6'){
		if(money1<1000){
			cout<<"买不起"<<endl;
			return ;
		}
		money1-=1000;
		for(int cj=1;cj<=100;cj++){
			srand(time(0));
			int nm=rand()%400;
			srand(nm);
			int nm1=rand()%(nm+10);
			srand(nm);
			int nm2=rand()%(nm+10);
			nm+=nm1;
			nm-=nm2;
			if(nm<0){
				int mn=rand()%10+1;
				nm=max(mn,nm+1);
			}
			if(nm==0){
				cout<<"特等奖"<<endl;
				money1+=700;
			}
			if(nm==1){
				cout<<"一等奖"<<endl;
				money1+=400;
			}
			if(nm==2){
				cout<<"二等奖"<<endl;
				money1+=200;
			}
			if(nm==3||nm==4){
				cout<<"三等奖"<<endl;
				money1+=100;
			}
			if(nm==5||nm==6||nm==7){
				cout<<"四等奖"<<endl;//yanziwei88
				money1+=60;
			}
			if(nm>=8&&nm<=12){
				cout<<"五等奖"<<endl;
				money1+=40;
			}
			if(nm>=13&&nm<=30){
				cout<<"幸运奖"<<endl;
				money1+=10;
			}
			if(nm>=31){
				srand(time(0));
				int cj=rand()%3;
				if(cj==2)
				cout<<"谢谢惠顾"<<endl;
				if(cj==1)
				cout<<"再接再厉"<<endl;
				if(cj==0)
				cout<<"下次一定"<<endl;
			}
			Sleep(600);
		}
	}
	if(f=='7'){
		taobao();
	}
	if(f=='8'){
		if(money1<10){
			cout<<"没钱"<<endl;
			return ;
		}
		money1-=10;
		caishu();
	}
	if(f=='9'){
		if(money1<50){
			cout<<"滚"<<endl;
			return ;
		}
		money1-=50;
		for(int ol=1;ol<=15;ol++){
			srand(time(0));
			int dg=rand()%10;
			char a32;
			cin>>a32;
			if(a32-'0'==dg){
				money1+=ol;
				cout<<"中了第"<<ol<<"个 ";
			}
		}
	}
	Sleep(1000);
	system("cls");
	return ;
}
void dagong(){
	tl--;
	cout<<"打工中"<<endl;
	Sleep(1000);
	srand(time(0));
	int f=rand()%10;
	if(f==3){
		srand(time(0));
		int zs=rand()%2;
		cout<<"你获得了"<<zs+1<<"颗钻石"<<endl;
		money2+=(zs+1);
	}else if(f==2){
		cout<<"资本家太黑心了没给你金币"<<endl;
	}else if(f==1){
		srand(time(0));
		int jb=rand()%11;
		cout<<"资本家太黑心了没给你金币"<<endl;
		cout<<"于是你打了他"<<endl;
		cout<<"金币-"<<(4+jb)<<endl;
		money1-=jb;
		money1-=4;
	}else{
		srand(time(0));
		int jb=rand()%11;
		cout<<"你获得了"<<jb<<"枚金币"<<endl;
		money1+=jb;
	}
	Sleep(800);
	system("cls");
}
void yuwai(){
	system("cls");
	srand(time(0));
	int x=rand()%25;
	if(x==9+3){
		cout<<"骷髅战士:攻击5150,防御10160 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(5150,10160);
			if(l)
			{
				cout<<"你打赢了,获得125金币,25钻石"<<endl;
				jy+=20;
				money1+=125;
				money2+=25;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==10+3){
		cout<<"骷髅法师:攻击7150,防御9408 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(7150,9408);
			if(l)
			{
				cout<<"你打赢了,获得125金币,25钻石"<<endl;
				jy+=20;
				money1+=125;
				money2+=25;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==1+3){
		cout<<"神龙:攻击21500,防御44080 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(21500,44080);
			if(l)
			{
				cout<<"你打赢了,获得1000金币,100钻石"<<endl;
				jy+=80;
				money1+=1000;
				money2+=100;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==2+3){
		cout<<"神圣巨龙:攻击15000,防御28080 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(15000,28080);//yanziwei88
			if(l)
			{
				cout<<"你打赢了,获得800金币,65钻石"<<endl;
				jy+=60;
				money1+=800;
				money2+=65;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==3+3){
		cout<<"龙:攻击13000,防御27080 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(13000,27080);
			if(l)
			{
				cout<<"你打赢了,获得485金币,55钻石"<<endl;
				jy+=50;
				money1+=485;
				money2+=55;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==13+3){
		cout<<"小龙:攻击9500,防御18080 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(9500,18080);
			if(l)
			{
				cout<<"你打赢了,获得325金币,36钻石"<<endl;
				jy+=40;
				money1+=325;
				money2+=36;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==8+3){
		cout<<"劫匪:攻击11150,防御1900 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(11150,1900);
			if(l)
			{
				cout<<"你打赢了,获得200金币"<<endl;
				money1+=200;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==5+3){
		cout<<"火神:攻击15150,防御35900 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(15150,35900);
			if(l)
			{
				cout<<"你打赢了,获得火焰之力"<<endl;
				jy+=30;
				jnn[10]=1;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==6+3){
		cout<<"水神:攻击14500,防御41000 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(14500,41000);
			if(l)
			{
				cout<<"你打赢了,获得水之力"<<endl;
				jy+=30;
				jnn[11]=1;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==7+3){
		cout<<"him:攻击12000,防御100000 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(12000,100000);
			if(l)
			{
				cout<<"你打赢了,获得创世之力"<<endl;
				jy+=80;
				jnn[12]=1;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==11+3){
		cout<<"him分身:攻击7500,防御25000 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(7500,25000);
			if(l)
			{
				cout<<"你打赢了,获得了him的一些力量"<<endl;
				jy+=50;
				cnt+=10;
				a+=30;
				b+=100;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==4+3){
		cout<<"财神:攻击15500,防御29000 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(15500,29000);
			if(l)
			{
				cout<<"你打赢了,获得了100钻石"<<endl;
				jy+=40;
				money2+=100;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==21+3){
		cout<<"财神小弟:攻击6500,防御16000 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(6500,16000);
			if(l)
			{
				cout<<"你打赢了,获得了10钻石"<<endl;
				jy+=25;
				money2+=10;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==22+3){
		cout<<"魔王手下:攻击2000,防御6500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(2000,6500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==14+3){
		cout<<"魔王:攻击8100,防御16200 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(8100,16200);
			if(l)
			{
				cout<<"你打赢了,获得了23金币"<<endl;
				jy+=35;
				money1+=23;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==17+3){
		cout<<"冰魔:攻击3000,防御7500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(3000,7500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==15+3){
		srand(time(0));
		int m1=rand()%10;
		cout<<"你获得了 "<<m1<<"枚金币"<<endl;
		money1+=m1;
	}
	if(x==0){
		cout<<"你获得了 腐蚀之刃"<<endl;
		a+=300;
		fushi=1;
	}
	if(x==1){
		//cout<<"你获得了 腐蚀之刃"<<endl;
		//a+=300;
		//fushi=1;
	}
	if(x==2){
		cout<<"你获得了 破血长戟"<<endl;
		a+=200;
		fuxue=1;
	}
	if(x==3){
		cout<<"你获得了 救命丹"<<endl;
		c++;
	}
	if(x==16+3){
		srand(time(0));
		int m1=rand()%2;
		cout<<"你获得了 "<<m1<<"枚钻石"<<endl;
		money2+=m1;
	}
	if(x==17+3){
		cout<<"火魔:攻击4000,防御5500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(4000,5500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==18+3){
		cout<<"石魔:攻击2100,防御7500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(2100,7500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==19+3){
		cout<<"暗影魔:攻击8100,防御1500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(8100,1500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==20+3){
		cout<<"杂血龙:攻击3100,防御7500 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(3100,7500);
			if(l)
			{
				cout<<"你打赢了,获得了8金币"<<endl;
				jy+=20;
				money1+=8;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	return ;
}
void xsdjc(){
	cout<<"这是一个修仙游戏"<<endl;
	int aaaaa=10,bbbbb=100,xxxxx=5,yyyyy=40;
	cout<<"你来打一场吧";
	while(1){
		cout<<"你 攻击:"<<aaaaa<<"血量:"<<bbbbb<<"这是你的攻击和血量"<<endl;
		cout<<"邓锐杰sb 攻击:"<<xxxxx<<"血量:"<<yyyyy<<"这是对方的攻击和血量"<<endl;
		cout<<"(1)攻击 《==== 用这个 输入1"<<endl;
		int jkkl;
		cin>>jkkl;
		if(jkkl==1){
			cout<<"你攻击了他 "<<aaaaa<<"滴血"<<endl;
			yyyyy-=aaaaa;
		}
		cout<<"他攻击了你 "<<xxxxx<<"滴血"<<endl;
		bbbbb-=xxxxx;
		if(yyyyy<=0){
			cout<<"你打赢了"<<endl;
			break;
		}
	}
	cout<<"你因该会了吧"<<endl;
	cout<<"给你100金币"<<endl;
	cout<<"再见"<<endl;
	Sleep(800);
	system("cls");
	return  ;
}
void xyc(){
	system("cls");
	cout<<"你的对手:攻击"<<cen*100+1000<<",防御"<<cen*250+5000 <<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(cen*100+1000,cen*250+5000);
			if(l)
			{
				cout<<"你打赢了,下一层"<<endl;
				jy+=cen;
				cen++;
			}
			else
			{
				cout<<"你输了退回上一层"<<endl;
				cen--;
			}
	}
	system("cls");
}
void jg(){
	system("cls");
	cout<<"你的敌人:攻击"<<cen*500+1000<<",防御"<<cen*1500+5000 <<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1";
			money1--;
			return ;
		} else{
			bool l=zhan(cen*500+1000,cen*1500+5000);
			if(l)
			{
				if(cen%15==0){
					cout<<"干的漂亮!"<<endl;
					cout<<"奖励"<<cen*3<<"枚金币"<<endl;
					money1+=cen*3;
				}
				cout<<"你打赢了,下一个"<<endl;
				jy+=cen;
				cen++;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
	}
	system("cls");
}
void vs(){
	system("cls");
	cout<<"(1)神"<<endl;
	cout<<"(2)超神"<<endl;
	cout<<"(3)真神"<<endl;
	cout<<"(4)神王"<<endl;
	cout<<"(5)神尊"<<endl;
	int x;
	cin>>x;
	if(x==1)
	{
		cout<<"人机:攻击620,防御1252"<<endl;
		bool l=zhan(620,1252);
		if(l)
		{
			cout<<"你打赢了"<<endl;
				jy+=50;
			return ;
		}
		else
		{
			cout<<"你输了 金币-12"<<endl;
			money1-=12;
			return ;
		}
	}
	if(x==2)
	{
		cout<<"人机:攻击720,防御1452"<<endl;
		bool l=zhan(720,1452);
		if(l)
		{
			cout<<"你打赢了"<<endl;
			jy+=75;
			return ;
		}
		else
		{
			cout<<"你输了 金币-23"<<endl;
			money1-=23;
			return ;
		}
	}
	if(x==3)
	{
		cout<<"人机:攻击820,防御1652"<<endl;
		bool l=zhan(820,1652);
		if(a+b>820+852 )
		{
			cout<<"你打赢了,获得34金币"<<endl;
			jy+=100;
			cnt+=3;
			return ;
		}
		else
		{
			cout<<"你输了 金币-34"<<endl;
			money1-=34;
			return ;
		}
	}
	if(x==4)
	{
		cout<<"人机:攻击920,防御1852"<<endl;
		bool l=zhan(920,1852);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			jy+=125;
			money1+=12;
			return ;
		}
		else
		{
			cout<<"你输了 金币-12"<<endl;
			money1-=12;
			return ;
		}
	}
	if(x==5)
	{
		cout<<"人机:攻击1020,防御2052"<<endl;
		bool l=zhan(2020,2052);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			money1+=12;
			jy+=150;
			return ;
		}
		else
		{
			cout<<"你输了 金币-12"<<endl;
			money1-=12;
			return ;
		}
	}
	return ;
}
void lilian(){
	system("cls");
	srand(time(0));
	int x=rand()%10;
	jy+=20;
	if(x<=3){
		cout<<"赵云:攻击415,防御416 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1"<<endl;
			money1--;
			return ;
		} else{
			bool l=zhan(415,416);
			if(l)
			{
				cout<<"你打赢了,获得25金币,2钻石"<<endl;
				money1+=25;
				money2+=2;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x>3&&x<=5){
		cout<<"张辽:攻击431,防御386 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1"<<endl;
			money1--;
			return ;
		} else{
			bool l=zhan(431,386);
			if(l)
			{
				cout<<"你打赢了,获得20金币,2钻石"<<endl;
				money1+=20;
				money2+=2;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x>5&&x<=8){
		cout<<"董卓:攻击115,防御116 "<<endl<<" 1. 攻击 2.逃跑"<<endl;
		int c;
		cin>>c;
		if(c==2){
			cout<<"你跑了 金币-1"<<endl;
			money1--;
			return ;
		} else{
			bool l=zhan(115,116);
			if(l)
			{
				cout<<"你打赢了,获得10金币"<<endl;
				money1+=10;
			}
			else
			{
				if(c==0){
					cout<<"你死了" <<endl;
					s=1;
					return ;
				}
				c--;
			}
		}
	}
	if(x==9){
		srand(time(0));
		int m1=rand()%5;
		cout<<"你获得了 "<<m1<<"枚钻石"<<endl;
		money2+=m1;
	}
	if(x==10){
		srand(time(0));
		int m1=rand()%10;
		cout<<"你获得了 "<<m1<<"枚金币"<<endl;
		money1+=m1;
	}
	system("cls");
	return ;
}
void zhanchang(){
	system("cls");
	cout<<"(1)华雄(普通)"<<endl;
	cout<<"(2)黄盖(进阶)"<<endl;
	cout<<"(3)关羽(困难)"<<endl;
	cout<<"(4)诸葛亮(噩梦)"<<endl;
	cout<<"(5)小兵(容易)"<<endl;
	cout<<"(6)张飞(困难)"<<endl;
	cout<<"(7)吕布(噩梦)"<<endl;
	cout<<"(8)黄忠(困难)"<<endl;
	cout<<"(9)刘备(地狱)"<<endl;
	cout<<"(X)曹操(boss)"<<endl;
	char v;
	cin>>v;
	system("cls");
	if(v=='1')
	{
		cout<<"华雄:攻击45,防御46"<<endl;
		bool  l=zhan(45,46);
		if(l)
		{
			cout<<"你打赢了,获得5金币"<<endl;
			jy+=2;
			money1+=5;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='2')
	{
		cout<<"黄盖:攻击160,防御152"<<endl;
		bool  l=zhan(160,152);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			jy+=4;
			money1+=12;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='3')
	{
		cout<<"关羽:攻击378,防御365"<<endl;
		bool  l=zhan(378,365);
		if(l)
		{
			cout<<"你打赢了,获得30金币,1钻石"<<endl;
			money1+=30;
			money2+=1;
			jy+=8;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='4')
	{
		cout<<"诸葛亮:攻击612,防御518"<<endl;
     //yanziwei88
		bool  l=zhan(612,518);
		if(a+b>512+518&& cnt>=25)
		{
			cout<<"你打赢了,获得53金币,2钻石"<<endl;
			money1+=53;
			jy+=16;
			money2+=2;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='5')
	{
		cout<<"小兵:攻击2,防御4"<<endl;
		bool  l=zhan(2,4);
		if(l)
		{
			cout<<"你打赢了"<<endl;
			jy++;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='6')
	{
		cout<<"张飞:攻击380,防御356"<<endl;
		bool  l=zhan(380,356);
		if(l)
		{
			cout<<"你打赢了,获得28金币,1钻石"<<endl;
			jy+=8;
			money1+=28;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='7')
	{
		cout<<"吕布:攻击692,防御486"<<endl;
		bool  l=zhan(692,486);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=16;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='8')
	{
		cout<<"黄忠:攻击355,防御319"<<endl;
		bool  l=zhan(355,319);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=8;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='9')
	{
		cout<<"刘备:攻击1045,防御1246"<<endl;
		bool  l=zhan(1045,1246);
		if(l)
		{
			cout<<"你打赢了,获得10金币"<<endl;
			jy+=32;
			money1+=10;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='X')
	{
		cout<<"曹操:攻击1645,防御2246"<<endl;
		bool  l=zhan(1645,2246);
		if(l)
		{
			cout<<"你打赢了,获得10金币"<<endl;
			jy+=64;
			money1+=10;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	return ;
}
void zhanchang1(){
	cout<<"(1)华雄(进阶)"<<endl;
	cout<<"(2)黄盖(困难)"<<endl;
	cout<<"(3)关羽(噩梦)"<<endl;
	cout<<"(4)诸葛亮(地狱)"<<endl;
	cout<<"(5)小兵(普通)"<<endl;
	cout<<"(6)张飞(噩梦)"<<endl;
	cout<<"(7)吕布(地狱)"<<endl;
	cout<<"(8)黄忠(噩梦)"<<endl;
	cout<<"(9)刘备(史诗)"<<endl;
	cout<<"(X)曹操(boss)"<<endl;
	char v;
	cin>>v;
	if(v=='1')
	{
		cout<<"华雄:攻击145,防御446"<<endl;
		bool  l=zhan(145,446);
		if(l)
		{
			cout<<"你打赢了,获得5金币"<<endl;
			money1+=5;
			jy+=4;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='2')
	{
		cout<<"黄盖:攻击360,防御1302"<<endl;
		bool  l=zhan(360,1302);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			jy+=8;
			money1+=12;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='3')
	{
		cout<<"关羽:攻击778,防御1950"<<endl;
		bool  l=zhan(778,1950);
		if(l)
		{
			cout<<"你打赢了,获得30金币,1钻石"<<endl;
			jy+=16;
			money1+=30;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='4')
	{
		cout<<"诸葛亮:攻击1100,防御4818"<<endl;
		bool  l=zhan(1100,4818);
		if(a+b>512+518&& cnt>=25)
		{
			cout<<"你打赢了,获得53金币,3钻石"<<endl;
			jy+=32;
			money1+=53;
			money2+=3;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='5')
	{
		cout<<"小兵:攻击66,防御190"<<endl;
		bool  l=zhan(66,190);
		if(l)
		{
			cout<<"你打赢了,获得1金币"<<endl;
			jy+=2;
			money1+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='6')
	{
		cout<<"张飞:攻击880,防御1756"<<endl;
		bool  l=zhan(880,1756);
		if(l)
		{
			cout<<"你打赢了,获得28金币,1钻石"<<endl;
			jy+=16;
			money1+=28;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='7')
	{
		cout<<"吕布:攻击1392,防御3706"<<endl;
		bool  l=zhan(1392,3706);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=32;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='8')
	{
		cout<<"黄忠:攻击755,防御2019"<<endl;
		bool  l=zhan(755,2019);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=15;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='9')
	{
		cout<<"刘备:攻击2645,防御8246"<<endl;
		bool  l=zhan(2645,8246);
		if(l)
		{
			cout<<"你打赢了,获得10金币"<<endl;
			jy+=64;
			money1+=10;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='X')
	{
		cout<<"曹操:攻击4745,防御10406"<<endl;
		bool  l=zhan(4745,10406);
		if(l)
		{
			cout<<"你打赢了,获得10金币"<<endl;
			jy+=128;
			money1+=10;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	return ;
}
void zhanchang2(){
	cout<<"(1)华雄(困难)"<<endl;
	cout<<"(2)黄盖(噩梦)"<<endl;
	cout<<"(3)关羽(地狱)"<<endl;
	cout<<"(4)诸葛亮(史诗)"<<endl;
	cout<<"(5)小兵(进阶)"<<endl;
	cout<<"(6)张飞(地狱)"<<endl;
	cout<<"(7)吕布(史诗)"<<endl;
	cout<<"(8)黄忠(地狱)"<<endl;
	cout<<"(9)刘备(传说)"<<endl;
//	cout<<"(10)周瑜(困难)"<<endl;
	char v;
	cin>>v;
	if(v=='1')
	{
		cout<<"华雄:攻击465,防御1546"<<endl;
		bool  l=zhan(465,1546);
		if(l)
		{
			jy+=8;
			cout<<"你打赢了,获得5金币"<<endl;
			money1+=5;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='2')
	{
		cout<<"黄盖:攻击860,防御2902"<<endl;
		bool  l=zhan(860,2902);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			jy+=16;
			money1+=12;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='3')
	{
		cout<<"关羽:攻击1478,防3950"<<endl;
		bool  l=zhan(1478,3950);
		if(l)
		{
			cout<<"你打赢了,获得30金币,1钻石"<<endl;
			jy+=32;
			money1+=30;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='4')
	{
		cout<<"诸葛亮:攻击2312,防御8918"<<endl;
		bool  l=zhan(2312,8918);
		if(a+b>512+518&& cnt>=25)
		{
			cout<<"你打赢了,获得53金币,3钻石"<<endl;
			jy+=64;
			money1+=53;
			money2+=3;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='5')
	{
		cout<<"小兵:攻击190,防御580"<<endl;
		bool  l=zhan(190,580);
		if(l)
		{
			cout<<"你打赢了,获得1金币"<<endl;
			jy+=4;
			money1+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='6')
	{
		cout<<"张飞:攻击1380,防御4256"<<endl;
		bool  l=zhan(1380,4256);
		if(l)
		{
			cout<<"你打赢了,获得28金币,1钻石"<<endl;
			jy+=32;
			money1+=28;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='7')
	{
		cout<<"吕布:攻击2520,防御8306"<<endl;
		bool  l=zhan(2520,8306);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=64;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='8')
	{
		cout<<"黄忠:攻击1255,防御4519"<<endl;
		bool  l=zhan(1255,4519);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=31;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='9')
	{
		cout<<"刘备:攻击6645,防御14746"<<endl;
		bool  l=zhan(6645,14746);
		if(l)
		{
			cout<<"你打赢了,获得10金币"<<endl;
			jy+=100;
			money1+=10;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	return ;
}
void zhanchang3(){
	cout<<"(1)华雄(噩梦)"<<endl;
	cout<<"(2)黄盖(地狱)"<<endl;
	cout<<"(3)关羽(史诗)"<<endl;
	cout<<"(4)诸葛亮(传说)"<<endl;
	cout<<"(5)小兵(困难)"<<endl;
	cout<<"(6)张飞(史诗)"<<endl;
	cout<<"(7)吕布(传说)"<<endl;
	cout<<"(8)黄忠(史诗)"<<endl;
	cout<<"(9)刘备(神话)"<<endl;
//	cout<<"(10)周瑜(困难)"<<endl;
	char v;
	cin>>v;
	if(v=='1')
	{
		cout<<"华雄:攻击945,防御2646"<<endl;
		bool  l=zhan(945,2646);
		if(l)
		{
			cout<<"你打赢了,获得5金币"<<endl;
			jy+=16;
			money1+=5;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='2')
	{
		cout<<"黄盖:攻击1360,防御5102"<<endl;
		bool  l=zhan(1360,5102);
		if(l)
		{
			cout<<"你打赢了,获得12金币"<<endl;
			jy+=32;
			money1+=12;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='3')
	{
		cout<<"关羽:攻击2378,防9550"<<endl;
		bool  l=zhan(2378,9550);
		if(l)
		{
			cout<<"你打赢了,获得30金币,1钻石"<<endl;
			jy+=64;
			money1+=30;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='4')
	{
		cout<<"诸葛亮:攻击6612,防御19178"<<endl;
		bool  l=zhan(6612,19178);
		if(a+b>512+518&& cnt>=25)
		{
			cout<<"你打赢了,获得53金币,3钻石"<<endl;
			jy+=90;
			money1+=53;
			money2+=3;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='5')
	{
		cout<<"小兵:攻击490,防御1530"<<endl;
		bool  l=zhan(490,1530);
		if(l)
		{
			cout<<"你打赢了,获得1金币"<<endl;
			jy+=8;
			money1+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='6')
	{
		cout<<"张飞:攻击2880,防御9096"<<endl;
		bool  l=zhan(2880,9096);
		if(l)
		{
			cout<<"你打赢了,获得28金币,1钻石"<<endl;
			jy+=64;
			money1+=28;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='7')
	{
		cout<<"吕布:攻击6992,防御18406"<<endl;
		bool  l=zhan(6992,18406);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=85;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='8')
	{
		cout<<"黄忠:攻击2155,防御10190"<<endl;
		bool  l=zhan(2155,10190);
		if(l)
		{
			cout<<"你打赢了,获得100金币,1钻石"<<endl;
			jy+=63;
			money1+=100;
			money2+=1;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	if(v=='9')
	{
		cout<<"刘备:攻击12045,防御36750"<<endl;
		bool  l=zhan(12045,36750);
		if(l)
		{
			cout<<"你打赢了,获得100金币"<<endl;
			jy+=200;
			money1+=100;
		}
		else
		{
			if(c==0){
				cout<<"你死了" <<endl;
				s=1;
				return ;
			}
			c--;
		}
	}
	return ;
}
int main()
{
	cout<<"正在加载数据》";
	for(int i=1;i<=53;++i)
	{
		cout<<"》";
		Sleep(30);
	}
	system("cls");
	cout<<"正在加载战场》";
	for(int i=1;i<=53;++i)
	{
		cout<<"》";
		Sleep(30);
	}
	system("cls");
	cout<<"正在加载星系》";
	for(int i=1;i<=53;++i)
	{
		cout<<"》";
		Sleep(30);
	}
	system("cls");
	cout<<"正在加载道具》";
	for(int i=1;i<=53;++i)
	{
		cout<<"》";
		Sleep(30);
	}
	system("cls");
	cout<<"正在加载人物》";
	for(int i=1;i<=53;++i)
	{
		cout<<"》";
		Sleep(30);
	}
	system("cls");
	cout<<"加载完成";
	Sleep(100);
	for(int i=1;i<=3;i++){
		cout<<'.';
		Sleep(25);
	}
	Sleep(300);
	system("cls");
	cout<<"请输入你的名字:";
	cin>>name;
	cout<<"第一章 变强"<<endl;
	cout<<"你是一名小兵,这个世界出现了混乱三国"<<endl;
	cout<<"你的梦想是征服世界,于是你踏上了旅途"<<endl;
	cout<<"(0)简单 (1)普通 (2)困难"<<endl;
	cin>>nd;
	srand(time(0));
	int ff=rand()%8;
	cout<<"你的资质是";
	bool yanziweiyydssf,yanziweif;
	if(name=="yanziweiyyds"){
		ff=1;
		money1+=100000;
		c+=10;
		cnt=10000;
		a=40000;
		b=180000;
		yanziweiyydssf=1;
	}
	if(name=="颜子惟666"){
		money2+=130;
		money1+=13000;
		d+=2;
		ff=1;
		yanziweif=1;
	}
	if(ff==1){
		cout<<"传说"<<endl;
		zz=4;
	}else if(ff==2){
		cout<<"菜"<<endl;
		money1=10000;
		zz=-1;
	}else if(ff==4||ff==5){
		cout<<"忧"<<endl;
		zz=3;
	}else if(ff==3){
		cout<<"合格"<<endl;
		money1=1000;
		zz=0;
	}else if(ff==6||ff==7){
		cout<<"良"<<endl;
		zz=2;
	}else{
		cout<<"普通"<<endl;
		money1=200;
		zz=1;
	}
	cout<<"要进入新手教程吗 1.是 0.否"<<endl;
	char xs;
	cin>>xs;
	if(xs=='1'){
		xsdjc();
	}
	cout<<"请选职业 (0)骑士(1)射手(2)剑客(3)法师(4)巫师 (5)sb游戏推销员 (6)武器大师!(不选啥也没有)"<<endl;
	cin>>zy;
	if(zy==3){
		srand(time(0));
		int tyu=rand()%5;
		if(tyu==4||tyu==0){
			cout<<"火系"<<endl;
			sx=1;
		}else if(tyu==2||tyu==1){
			cout<<"冰系"<<endl;
			sx=0;
		}else{
			cout<<"雷系"<<endl;
			sx=2;
		}
	}
	srand(time(0));
	jy=rand()%1200;
	if(yanziweiyydssf){
		jy+=135612;
	}
	if(yanziweif){
		jy+=1000;
	}
	while(cnt<=400)
	{
		Sleep(500);
		system("cls");
		s=0;
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"金币:"<<money1<<" ,钻石:"<<money2<<" ,体力: "<<tl<<",经验: "<<jy<<endl;
		cout<<name<<':'<<cnt<<"级";
		denji();
		cout<<"(0)任务"<<endl;
		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)战场"<<endl;
		cout<<"(4)打工"<<endl;
		cout<<"(5)彩票"<<endl;
		if(cnt>=100){
			cout<<"(6)历练"<<endl;
		}
		if(cnt>=350){
			cout<<"(7)对战"<<endl;
		}
		if(cnt>=600){
			cout<<"(8)域外"<<endl;
		}
		if(cnt>=1000){
			cout<<"(9)星系"<<endl;
		}
		cout<<"攻击:"<<a<<"血量:"<<b<<endl;
		char x;
		cin>>x;
		if(x=='0')
		{
			renwu();
		}
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			zhanchang();
			if(s==1){
				return 0;
			}
		}
		if(x=='4'&&tl>0){
			dagong();
		}
		if(x=='4'&&tl<=0){
			cout<<"你没体力了"<<endl;
		}
		if(x=='5'){
			cout<<"(1)10元"<<endl;
			cout<<"(2)20元"<<endl;
			cout<<"(3)50元"<<endl;
			cout<<"(4)100元"<<endl;
			caipiao();
		}
		if(x=='6'&&cnt>=100){
			lilian();
			if(s==1){
				return 0;
			}
		}
		if(x=='7'&&cnt>=350){
			vs();
		}
		if(x=='8'&&cnt>=600){
			yuwai();
		}
		if(x=='9'&&cnt>=1000){
			xinxi();
			if(s==1){
				return 0;
			}
		}
	}
	cout<<"第二章 修炼"<<endl;
	cout<<"你成了第一强者但灵气复苏"<<endl;
	cout<<"你又需要修炼"<<endl;
	while(cnt<=2000)
	{
		Sleep(500);
		system("cls");
		s=0;
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"金币:"<<money1<<" ,钻石:"<<money2<<" ,体力: "<<tl<<",经验: "<<jy<<endl;
		cout<<name<<':'<<cnt<<"级";
		denji();
		cout<<"(0)任务"<<endl;
		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)战场"<<endl;
		cout<<"(4)打工"<<endl;
		cout<<"(5)彩票"<<endl;
		if(cnt>=100){
			cout<<"(6)历练"<<endl;
		}
		if(cnt>=350){
			cout<<"(7)对战"<<endl;
		}
		if(cnt>=600){
			cout<<"(8)域外"<<endl;
		}
		if(cnt>=10){
			cout<<"(9)星系"<<endl;
		}
		cout<<"攻击:"<<a<<"血量:"<<b<<endl;
		char x;
		cin>>x;
		if(x=='0')
		{
			renwu();
		}
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			zhanchang();
			if(s==1){
				return 0;
			}
		}
		if(x=='4'&&tl>0){
			dagong();
		}
		if(x=='4'&&tl<=0){
			cout<<"你没体力了"<<endl;
		}
		if(x=='5'){
			cout<<"(1)10元"<<endl;
			cout<<"(2)20元"<<endl;
			cout<<"(3)50元"<<endl;
			cout<<"(4)100元"<<endl;
			caipiao();
		}
		if(x=='6'&&cnt>=100){
			lilian();
			if(s==1){
				return 0;
			}
		}
		if(x=='7'&&cnt>=350){
			vs();
		}
		if(x=='8'&&cnt>=600){
			yuwai();
		}
		if(x=='9'&&cnt>=10){
			xinxi();
			if(s==1){
				return 0;
			}
		}
	}
	cout<<"第三章 大世界"<<endl;
	cout<<"一个声音传来,你有资格进入大世界"<<endl;
	cout<<"你还没反应过来就感觉一阵头晕目眩"<<endl;
	cout<<"你醒了"<<endl;
	cout<<"你发现眼前的世界人都很强"<<endl;
	cout<<"? : 喂!"<<"快过来"<<endl;
	cout<<name<<": 你是谁 ?"<<endl;
	cout<<"? : 我叫王小天是总部派来接相你一样从小世界出来的人"<<endl;
	cout<<"王小天带你到了一个地方"<<endl;
	cout<<"王小天 : 你去登记一下"<<endl;
	cout<<"你登记了身份"<<endl;
	cout<<"你下定决心要成为强者"<<endl;
	while(cnt<=3500)
	{
		Sleep(500);
		system("cls");
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"金币:"<<money1<<" ,钻石:"<<money2<<" ,体力: "<<tl<<",经验: "<<jy<<endl;
		cout<<name<<':'<<cnt<<"级";
		denji();
		cout<<"(0)任务"<<endl;
		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)战场"<<endl;
		cout<<"(4)打工"<<endl;
		if(cnt>=100){
			cout<<"(5)历练"<<endl;
		}
		if(cnt>=350){
			cout<<"(6)对战"<<endl;
		}
		if(cnt>=600){
			cout<<"(7)域外"<<endl;
		}
		if(cnt>=1000){
			cout<<"(8)星系"<<endl;
		}
		cout<<"攻击:"<<a<<"血量:"<<b<<endl;
		char x;
		cin>>x;
		if(x=='0')
		{
			renwu();
		}
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			zhanchang2();
			if(s==1){
				return 0;
			}
		}
		if(x=='4'&&tl>0){
			dagong();
		}
		if(x=='4'&&tl<=0){
			cout<<"你没体力了"<<endl;
		}
		if(x=='5'&&cnt>=100){
			lilian();
			if(s==1){
				return 0;
			}
		}
		if(x=='6'&&cnt>=350){
			vs();
		}
		if(x=='7'&&cnt>=600){
			yuwai();
		}
		if(x=='8'&&cnt>=1000){
			xinxi();
			if(s==1){
				return 0;
			}
		}
	}
	cout<<"第四章"<<endl;
	cout<<"王小天带你来到了一个地方"<<endl;
	cout<<"王小天 :这是四星域大比,你代表我们白虎星域参赛"<<endl;
	cout<<"你想拿第一 于是前往了大比"<<endl;
	while(cen<=100){
		Sleep(500);
		system("cls");
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"你在第"<<cen<<"层"<<endl;
  		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)闯关"<<endl;
		cout<<"攻击:"<<a<<" 血量:"<<b<<" 经验: "<<jy<<endl;
		char x;
		cin>>x;
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			xyc();
		}
	}
	cout<<"第五章"<<endl;
	cout<<"你得到了第一,你肥肠开心"<<endl;
	cout<<"因为你能进入人族核心:神城"<<endl ;
	cout<<"你下定决心要成为强者"<<endl;
	while(cnt<=5500)
	{
		Sleep(500);
		system("cls");
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"金币:"<<money1<<" ,钻石:"<<money2<<" ,体力: "<<tl<<",经验: "<<jy<<endl;
		cout<<name<<':'<<cnt<<"级";
		denji();
		cout<<"(0)任务"<<endl;
		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)战场"<<endl;
		if(cnt>=100){
			cout<<"(4)历练"<<endl;
		}
		if(cnt>=350){
			cout<<"(5)对战"<<endl;
		}
		if(cnt>=600){
			cout<<"(6)域外"<<endl;
		}
		if(cnt>=1000){
			cout<<"(7)星系"<<endl;
		}
		cout<<"攻击:"<<a<<"血量:"<<b<<endl;
		char x;
		cin>>x;
		if(x=='0')
		{
			renwu();
		}
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			zhanchang3();
			if(s==1){
				return 0;
			}
		}
		if(x=='4'&&cnt>=100){
			lilian();
			if(s==1){
				return 0;
			}
		}
		if(x=='5'&&cnt>=350){
			vs();
		}
		if(x=='6'&&cnt>=600){
			yuwai();
		}
		if(x=='7'&&cnt>=1000){
			xinxi();
			if(s==1){
				return 0;
			}
		}
	}
	cout<<"第六章 出击"<<endl;
	cout<<"黑血大界入侵 无数百姓死于非命(百姓对作者说:我你********)"<<endl;
	cout<<"于是你为了让作者不被人骂死踏上了旅途....."<<endl;
	cen=0;
	while(cen<=150){
		Sleep(500);
		system("cls");
		cout<<endl;
		cout<<"你有"<<c+1<<"条命"<<endl;
		cout<<"你在第"<<cen<<"层"<<endl;
  		cout<<"(1)商店"<<endl;
		cout<<"(2)练兵"<<endl;
		cout<<"(3)进攻"<<endl;
		cout<<"攻击:"<<a<<" 血量:"<<b<<" 经验: "<<jy<<endl;
		char x;
		cin>>x;
		if(x=='1')
		{
			shangdian();
		}
		if(x=='2')
		{
			xiulian();
		}
		if(x=='3'){
			jg();
			if(s==1){
				return 0;
			}
		}
	}
	return 0;
}
原文