//为了打代码时方便, 几乎所有变量名及函数名为拼音。
#include<bits/stdc++.h>
#include<Windows.h>
#include<sys/stat.h>
#include<cstdlib>
#define int long long
using namespace std;
int x;
string yonghuming;
int jinbi=150,zuanshi=25,dengji=1,jingyanzhi,paiwei1=1,paiwei2=1,xing=1,shengming=120,gongji=15,fangyu=8;
int shengmingdengji,gongjidengji,fangyudengji;
int zhudongji[101],beidongji[101];
string duanwei[101]={"","黑铁","青铜","白银","黄金","铂金","钻石","王者","枭雄","无敌霸主"};
string zhudongji1[101]={"","利剑","火焰","毒气","冰冻","横扫"};
string zhudongjishuoming[101]={"","本次攻击+100","目标3回合内每回合生命-(攻击*1.2)","目标3回合内每回合生命-(目标当前生命*0.2)","使目标1回合内无法行动","所有敌人生命-(攻击*0.8)"};
int zhudongjizuanshi[101]={0,24,15,18,12,20};
string beidongji1[101]={"","盾牌","灭火【开发中】","解毒【开发中】","解冻【开发中】","荆棘"};
string beidongjishuoming[101]={"","防御+500【当受到非技能攻击时】","解除以自身为目标的火焰","解除以自身为目标的毒气","解除以自身为目标的冰冻","使攻击者受到(攻击者的攻击*5)的伤害【对技能伤害无效】"};
int beidongjizuanshi[101]={0,20,12,15,10,15};
string duanweishuzi[101]={"","I","II","III","IV","V","VI","VII","VIII","IX","X"};
int xing1[101]={0,1,3,3,5,5,5,6,8,19},duanweidengji[101]={0,1,3,3,3,5,5,10,10,19};
int duanweidiren[101]={0,1,3,3,5,5,5,8,8,10};
int diren,dishengming[10001],digongji[10001],difangyu[10001];
int shengming1,gongji1,fangyu1;
int huoyan[101],duqi[101],bingdong[101];
int win;
bool jingji1,fuhuo;
void jiemian()
{
system("cls");
printf("-------------------------------***** 大乱斗 *****-------------------------------\n");
if(paiwei1!=9)
{
cout<<yonghuming<<" "<<duanwei[paiwei1]<<duanweishuzi[paiwei2]<<" ";
for(int i=1;i<=xing;i++)
cout<<"★";
for(int i=xing+1;i<=xing1[paiwei1];i++)
cout<<"☆";
cout<<endl;
}
else
{
cout<<yonghuming<<" "<<duanwei[paiwei1]<<" ";
for(int i=1;i<=xing;i++)
cout<<"★";
cout<<endl;
}
printf("Level:%lld exp:%lld/%lld\n",dengji,jingyanzhi,dengji*100);
printf("金币:%lld 钻石:%lld\n",jinbi,zuanshi);
}
void jiemian1()
{
system("cls");
printf("-------------------------------***** 大乱斗 *****-------------------------------\n");
}
void jiazai()
{
printf("正在加载中");
for(int i=1;i<=3;i++)
{
Sleep(300);
printf(".");
}
Sleep(300);
}
bool isFileExists_stat(string& name)
{
struct stat buffer;
return (stat(name.c_str(),&buffer)==0);
}
void dudang(string s)
{
FILE *fin;
fin=fopen(s.c_str(),"r");
fscanf(fin,"%lld",&jinbi);
fscanf(fin,"%lld",&zuanshi);
fscanf(fin,"%lld",&dengji);
fscanf(fin,"%lld",&jingyanzhi);
fscanf(fin,"%lld",&paiwei1);
fscanf(fin,"%lld",&paiwei2);
fscanf(fin,"%lld",&xing);
fscanf(fin,"%lld",&shengming);
fscanf(fin,"%lld",&gongji);
fscanf(fin,"%lld",&fangyu);
fscanf(fin,"%lld",&shengmingdengji);
fscanf(fin,"%lld",&gongjidengji);
fscanf(fin,"%lld",&fangyudengji);
for(int i=1;i<=5;i++)
fscanf(fin,"%lld",&zhudongji[i]);
for(int i=1;i<=5;i++)
fscanf(fin,"%lld",&beidongji[i]);
fclose(fin);
}
void cundang(string s)
{
FILE *fout;
fout=fopen(s.c_str(),"w");
fprintf(fout,"%lld\n",jinbi);
fprintf(fout,"%lld\n",zuanshi);
fprintf(fout,"%lld\n",dengji);
fprintf(fout,"%lld\n",jingyanzhi);
fprintf(fout,"%lld\n",paiwei1);
fprintf(fout,"%lld\n",paiwei2);
fprintf(fout,"%lld\n",xing);
fprintf(fout,"%lld\n",shengming);
fprintf(fout,"%lld\n",gongji);
fprintf(fout,"%lld\n",fangyu);
fprintf(fout,"%lld\n",shengmingdengji);
fprintf(fout,"%lld\n",gongjidengji);
fprintf(fout,"%lld\n",fangyudengji);
for(int i=1;i<=5;i++)
fprintf(fout,"%lld\n",zhudongji[i]);
for(int i=1;i<=5;i++)
fprintf(fout,"%lld\n",beidongji[i]);
fclose(fout);
}
void zhuce();
void denglu()
{
jiazai();
jiemian1();
printf("\n登录\n\n");
printf("请输入用户名:\n");
cin>>yonghuming;
printf("正在登录中");
for(int i=1;i<=3;i++)
{
Sleep(300);
printf(".");
}
Sleep(300);
string s=yonghuming+".in";
if(!isFileExists_stat(s))
{
printf("\n您没有注册该账号,请先注册!\n");
Sleep(1000);
zhuce();
return;
}
dudang(s);
printf("\n登录成功!\n");
Sleep(1000);
}
void zhuce()
{
jiazai();
jiemian1();
printf("\n注册\n\n");
printf("请输入用户名:\n");
cin>>yonghuming;
printf("正在注册中");
for(int i=1;i<=3;i++)
{
Sleep(300);
printf(".");
}
Sleep(300);
string s=yonghuming+".in";
if(isFileExists_stat(s))
{
printf("\n您已经注册过了该账号,请直接登录!\n");
Sleep(1000);
denglu();
return;
}
cundang(s);
printf("\n注册成功,请登录!\n");
Sleep(1000);
denglu();
}
void shengji()
{
int shuru;
at1:;
jiazai();
jiemian();
printf("\n升级属性\n\n");
printf("生命:%lld级 %lld\n",shengmingdengji,shengming);
printf("攻击:%lld级 %lld\n",gongjidengji,gongji);
printf("防御:%lld级 %lld\n",fangyudengji,fangyu);
int shengmingjinbi=shengmingdengji*50+60,gongjijinbi=gongjidengji*20+30,fangyujinbi=fangyudengji*15+20;
printf("1 生命+30 %lld金币\n",shengmingjinbi);
printf("2 攻击+6 %lld金币\n",gongjijinbi);
printf("3 防御+2 %lld金币\n",fangyujinbi);
printf("4 返回\n");
scanf("%lld",&shuru);
if(shuru==1)
{
if(shengmingjinbi>jinbi)
printf("金币不足!\n");
else
{
printf("升级成功!\n");
shengmingdengji++,shengming+=30,jinbi-=shengmingjinbi;
string s=yonghuming+".in";
cundang(s);
}
}
else if(shuru==2)
{
if(gongjijinbi>jinbi)
printf("金币不足!\n");
else
{
printf("升级成功!\n");
gongjidengji++,gongji+=6,jinbi-=gongjijinbi;
string s=yonghuming+".in";
cundang(s);
}
}
else if(shuru==3)
{
if(fangyujinbi>jinbi)
printf("金币不足!\n");
else
{
printf("升级成功!\n");
fangyudengji++,fangyu+=2,jinbi-=fangyujinbi;
string s=yonghuming+".in";
cundang(s);
}
}
else if(shuru==4)
return;
else
printf("无效输入!!!\n");
Sleep(1000);
goto at1;
}
void jineng()
{
int shuru;
at2:;
jiazai();
jiemian();
printf("\n购买技能\n\n");
printf("1 主动技\n");
printf("2 被动技\n");
printf("3 返回\n");
scanf("%lld",&shuru);
if(shuru==1)
{
jiazai();
jiemian();
for(int i=1;i<=5;i++)
cout<<i<<" "<<zhudongji1[i]<<" "<<zhudongjishuoming[i]<<" "<<ceil(zhudongjizuanshi[i]*paiwei1*0.5)<<endl;
cout<<"6 返回\n";
int x;
scanf("%lld",&x);
if(x==6)
return;
if(x>5||x<1)
printf("无效输入!!!\n");
else
if(ceil(zhudongjizuanshi[x]*paiwei1*0.5)>zuanshi)
printf("钻石不足!\n");
else
{
zhudongji[x]++,zuanshi-=ceil(zhudongjizuanshi[x]*paiwei1*0.5);
printf("购买成功\n");
string s=yonghuming+".in";
cundang(s);
}
}
else if(shuru==2)
{
jiazai();
jiemian();
for(int i=1;i<=5;i++)
cout<<i<<" "<<beidongji1[i]<<" "<<beidongjishuoming[i]<<" "<<ceil(beidongjizuanshi[i]*paiwei1*0.5)<<endl;
cout<<"6 返回\n";
int x;
scanf("%lld",&x);
if(x==6)
return;
if(x>5||x<1)
printf("无效输入!!!\n");
else
{
if(x>=2&&x<=4)
printf("由于人机没有技能,该技能目前没有任何用处,娱乐模式及其附带被动技正在开发中。\n");
else if(ceil(beidongjizuanshi[x]*paiwei1*0.5)>zuanshi)
printf("钻石不足!\n");
else
{
beidongji[x]++,zuanshi-=ceil(beidongjizuanshi[x]*paiwei1*0.5);
printf("购买成功\n");
string s=yonghuming+".in";
cundang(s);
}
}
}
else if(shuru==3)
return;
else
printf("无效输入!!!\n");
goto at2;
}
void dengjitisheng()
{
while(jingyanzhi>=(dengji*100))
{
jingyanzhi-=(dengji*100);
shengming+=10,gongji+=3,fangyu+=1;
dengji++;
printf("恭喜升级!\n");
Sleep(1000);
}
string s=yonghuming+".in";
cundang(s);
}
void duanweitisheng()
{
if(paiwei1<9)
{
if(xing>xing1[paiwei1])
{
xing=1;
paiwei2++;
printf("段位提升*1!\n");
if(paiwei2>duanweidengji[paiwei1])
{
paiwei2=1;
paiwei1++;
printf("段位提升*inf!\n");
}
}
if(xing<0)
{
if(paiwei1>1)
{
paiwei2--;
printf("段位下降*1!\n");
if(paiwei2<1)
{
paiwei1--;
paiwei2=duanweidengji[paiwei1];
printf("段位下降*inf!\n");
}
}
xing=xing1[paiwei1];
}
}
string s=yonghuming+".in";
cundang(s);
}
void paiwei()
{
fuhuo=0;
win=0;
int shuru;
jiazai();
jiemian();
diren=duanweidiren[paiwei1];
int diren1=0;
int q=paiwei1;
if(q==9)
q+=(xing/3);
if(q>=9)
for(int i=1;i<=diren;i++)
{
dishengming[i]=rand()%(q*30+1)+(q*80);
digongji[i]=rand()%(q*5+1)+(q*10);
difangyu[i]=rand()%(q*3+1)+(q*5);
}
else if(paiwei2<=ceil(duanweidengji[q]*0.5))
for(int i=1;i<=diren;i++)
{
dishengming[i]=rand()%(q*30+1)+(q*50);
digongji[i]=rand()%(q*3+1)+(q*7);
difangyu[i]=rand()%(q*2+1)+(q*3);
}
else
for(int i=1;i<=diren;i++)
{
dishengming[i]=rand()%(q*30+1)+(q*80);
digongji[i]=rand()%(q*5+1)+(q*10);
difangyu[i]=rand()%(q*3+1)+(q*5);
}
shengming1=shengming,gongji1=gongji,fangyu1=fangyu;
jiemian();
cout<<yonghuming<<": "<<shengming1<<" "<<gongji1<<" "<<fangyu1<<endl;
for(int i=1;i<=diren;i++)
{
cout<<"P"<<i<<": ";
if(dishengming[i]<=0)
cout<<"Dead\n";
else
cout<<dishengming[i]<<" "<<digongji[i]<<" "<<difangyu[i]<<endl;
}
cout<<"按下回车键以进入战场。\n";
getchar();
getchar();
jiemian1();
cout<<" * * * * *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" * * * * *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" * * * * *\n";
Sleep(1000);
jiemian1();
cout<<" * * * * *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" *\n";
cout<<" * * * * *\n";
cout<<" * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * * * * *\n";
Sleep(1000);
jiemian1();
cout<<" * \n";
cout<<" * * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * \n";
cout<<" * * * * *\n";
Sleep(1000);
memset(huoyan,0,sizeof(huoyan));
memset(duqi,0,sizeof(duqi));
memset(bingdong,0,sizeof(bingdong));
win=0;
for(int k=1;;k++)
{
if(shengming1<=0)
win=-1;
if(diren1>=diren)
win=1;
if(win!=0)
break;
gongji1=gongji,fangyu1=fangyu;
aatt1:;
jiemian1();
cout<<"\n回合"<<k<<endl;
cout<<endl<<yonghuming<<": "<<shengming1<<" "<<gongji1<<" "<<fangyu1<<endl;
for(int i=1;i<=diren;i++)
{
cout<<"P"<<i<<": ";
if(dishengming[i]<=0)
cout<<"Dead\n";
else
cout<<dishengming[i]<<" "<<digongji[i]<<" "<<difangyu[i]<<endl;
}
cout<<"技能:\n";
for(int i=1;i<=5;i++)
if(zhudongji[i]>0)
cout<<i<<" "<<zhudongji1[i]<<endl;
cout<<"6 不使用\n";
cin>>shuru;
if(shuru==6)
{
cout<<"您本次未使用技能。\n";
Sleep(1000);
goto aatt;
}
if(shuru<1||shuru>5)
{
cout<<"该技能不存在!请重新选择技能。\n";
goto aatt1;
}
if(zhudongji[shuru]<=0)
{
cout<<"您没有此技能!本次您将无法使用技能。\n";
Sleep(1000);
goto aatt;
}
if(shuru==1)
{
gongji1+=100;
zhudongji[shuru]--;
cout<<"使用成功!\n";
Sleep(1000);
}
if(shuru==2)
{
cout<<"请选择目标。\n";
int x;
cin>>x;
if(x<1||x>diren)
{
cout<<"没有该目标!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
if(dishengming[x]<=0)
{
cout<<"目标已经死亡!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
huoyan[x]+=3;
zhudongji[shuru]--;
cout<<"使用成功!\n";
Sleep(1000);
}
if(shuru==3)
{
cout<<"请选择目标。\n";
int x;
cin>>x;
if(x<1||x>diren)
{
cout<<"没有该目标!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
if(dishengming[x]<=0)
{
cout<<"目标已经死亡!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
duqi[x]+=3;
zhudongji[shuru]--;
cout<<"使用成功!\n";
Sleep(1000);
}
if(shuru==4)
{
cout<<"请选择目标。\n";
int x;
cin>>x;
if(x<1||x>diren)
{
cout<<"没有该目标!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
if(dishengming[x]<=0)
{
cout<<"目标已经死亡!请重新选择技能。\n";
Sleep(1000);
goto aatt1;
}
bingdong[x]+=1;
zhudongji[shuru]--;
cout<<"使用成功!\n";
Sleep(1000);
}
if(shuru==5)
{
cout<<"使用成功!\n";
Sleep(1000);
for(int i=1;i<=diren;i++)
if(dishengming[i]>0)
{
cout<<"P"<<i<<": "<<dishengming[i]<<"→";
dishengming[i]-=floor(gongji1*0.8);
cout<<dishengming[i]<<endl;
Sleep(1000);
if(dishengming[i]<=0)
{
cout<<yonghuming<<" 杀死了 P"<<i<<endl;
Sleep(1000);
diren1++;
}
}
zhudongji[shuru]--;
}
aatt:;
if(diren1>=diren)
{
win=1;
break;
}
aatt2:;
jiemian1();
cout<<"\n回合"<<k;
cout<<endl<<yonghuming<<": "<<shengming1<<" "<<gongji1<<" "<<fangyu1<<endl;
for(int i=1;i<=diren;i++)
{
cout<<"P"<<i<<": ";
if(dishengming[i]<=0)
cout<<"Dead\n";
else
cout<<dishengming[i]<<" "<<digongji[i]<<" "<<difangyu[i]<<endl;
}
cout<<endl<<"攻击\n";
cout<<"请输入攻击对象:\n";
cin>>shuru;
if(shuru<1||shuru>diren)
{
cout<<"没有该目标!请重新选择目标。\n";
Sleep(1000);
goto aatt2;
}
if(dishengming[shuru]<=0)
{
cout<<"目标已经死亡!请重新选择目标。\n";
Sleep(1000);
goto aatt2;
}
cout<<"攻击成功!\n";
cout<<"P"<<shuru<<": "<<dishengming[shuru]<<"→";
dishengming[shuru]-=max(1ll,(gongji1-difangyu[shuru]));
cout<<dishengming[shuru]<<endl;
Sleep(1000);
if(dishengming[shuru]<=0)
{
cout<<yonghuming<<" 杀死了 P"<<shuru<<endl;
Sleep(1000);
diren1++;
}
for(int i=1;i<=diren;i++)
if(dishengming[i]>0)
{
gongji1=gongji,fangyu1=fangyu;
jiemian1();
cout<<"\n敌方行动\n\n";
cout<<"P"<<i<<":\n";
if(huoyan[i]>0)
{
cout<<"火焰"<<": ";
cout<<dishengming[i]<<"→";
dishengming[i]-=floor(gongji*1.5);
huoyan[i]--;
cout<<dishengming[i]<<endl;
Sleep(1000);
}
if(duqi[i]>0)
{
cout<<"毒气"<<": ";
cout<<dishengming[i]<<"→";
dishengming[i]-=floor(dishengming[i]*0.2);
duqi[i]--;
cout<<dishengming[i]<<endl;
Sleep(1000);
}
if(dishengming[i]<=0)
{
cout<<yonghuming<<" 杀死了 P"<<i<<endl;
Sleep(1000);
diren1++;
continue;
}
if(bingdong[i]>0)
{
cout<<"冰冻"<<endl;
bingdong[i]--;
Sleep(1000);
continue;
}
if(beidongji[5]>0)
{
cout<<yonghuming<<":荆棘\n";
jingji1=1;
Sleep(1000);
beidongji[5]--;
}
if(beidongji[1]>0)
{
cout<<yonghuming<<":盾牌\n";
fangyu1+=500;
Sleep(1000);
beidongji[1]--;
}
cout<<yonghuming<<": "<<shengming1<<"→";
shengming1-=max(1ll,(digongji[i]-fangyu1));
cout<<shengming1<<endl;
Sleep(1000);
if(shengming1<=0)
{
cout<<"P"<<i<<" 杀死了 "<<yonghuming<<endl;
Sleep(1000);
if(fuhuo==0)
{
int jinbi1=shengming-shengming1,zuanshi1=q*10;
printf("是否花费%lld金币+%lld钻石复活?\n",jinbi1,zuanshi1);
cout<<"1 是\n2 否\n";
int qwq;
cin>>qwq;
if(qwq==1)
{
if(jinbi1>jinbi)
{
cout<<"金币不足!\n";
qwq=2;
}
if(zuanshi1>zuanshi)
{
cout<<"钻石不足!\n";
qwq=2;
}
if(qwq==1)
{
fuhuo=1;
cout<<"复活成功!\n";
jinbi-=jinbi1,zuanshi-=zuanshi1;
shengming1=shengming;
}
}
if(qwq==2)
{
cout<<yonghuming<<" 失败了!\n";
Sleep(1000);
win=-1;
break;
}
if(qwq<1||qwq>3)
cout<<"无效输入!\n";
}
}
if(jingji1==1)
{
jingji1=0;
cout<<"P"<<i<<": "<<dishengming[i]<<"→";
dishengming[i]-=floor(digongji[i]*5);
cout<<dishengming[i]<<endl;
Sleep(1000);
if(dishengming[i]<=0)
{
cout<<yonghuming<<" 杀死了 P"<<i<<endl;
diren1++;
Sleep(1000);
}
}
}
}
jiazai();
jiemian();
if(win==1)
{
cout<<"您赢得了这场战斗的胜利!\n";
jingyanzhi+=(q*min(30ll,max(shengming1,shengming/diren)));
jinbi+=min(q*100,shengming1*10);
zuanshi+=30*ceil(q*0.5);
xing++;
}
if(win==-1)
{
cout<<"您输掉了这场战斗!\n";
jingyanzhi+=(q*5);
jinbi+=(diren1+5)*10;
zuanshi+=5*ceil(q*0.5);
xing--;
}
dengjitisheng();
duanweitisheng();
Sleep(1000);
jiemian();
}
void guize()
{
jiazai();
jiemian();
printf("·排位:对战多个人机,所有人机都只以你为目标。");
printf("·段位高,升段所需的星星及该段位包含的等级数就多,且人机数量就多、能力就强,不过每场排位的奖励也多。\n");
printf("·人机不会使用技能。\n");
printf("·排位获胜加1星,失败减1星,若段位为“黑铁”则不掉星。\n");
printf("·到达“无敌霸主”段位后,星星将无限增加。\n");
printf("·无论获胜还是失败都会增加经验、金币、钻石,但获胜增加更多。\n");
printf("·升级属性需要金币,购买技能需要钻石,它们会越来越贵。\n");
printf("·每购买一个技能,使用一次后就没了,但可以购买多个。\n");
printf("·每次只能发动一个主动技和攻击一次。\n");
printf("·若防御大于等于攻击,则伤害为1。\n");
printf("·先使用主动技再攻击。\n");
printf("·主动技选择发动,被动技满足条件一定触发。\n");
printf("·技能“火焰”、“毒气”、“冰冻”可以叠加回合次数,且会在目标开始行动时触发,有多个则都会触发。\n");
printf("·如果发动未拥有的主动技,则会受到惩罚,该回合无法使用技能。\n");
printf("·被动技“盾牌”与“荆棘”不会发生冲突,使用“荆棘”仍然会受到伤害,如果已经死亡,则不会触发“荆棘”。\n");
printf("·回合:所有玩家及人机都行动一次【被冰冻也算】是一个回合。\n");
printf("·大部分除法、小数乘法均向下取整。\n");
printf("·每场排位可花费金币和钻石复活一次。\n");
printf("\n·后续更新:\n");
printf(" ·娱乐:多人乱斗,每人生命、攻击、防御在一定范围内随机。\n");
printf(" ·将来技能“灭火”、“解毒”、“解冻”会在娱乐中派上用场。\n");
printf(" ·以后会更新更多的技能。\n");
printf("\n按下回车键以返回。\n");
getchar();
getchar();
}
signed main()
{
int shuru;
srand((int)time(0));
jiemian1();
printf(" * * * * * * * * * * * * * * *\n");
printf(" * *\n");
printf(" * * * * * * * * * * * *\n");
printf(" * * * * * *\n");
printf(" * * * *\n");
printf(" * * *\n");
printf(" * * * * *\n");
printf(" * * * *\n");
printf(" * * * *\n");
printf(" * * * *\n");
printf(" * * * *\n");
printf(" * * * *\n");
printf(" * * * * *\n");
printf(" * *\n");
printf(" * * * * * * * * * * * * * * *\n");
printf("正在初始化");
for(int i=1;i<=6;i++)
{
Sleep(300);
printf(".");
}
Sleep(300);
printf("\n正在进入游戏");
for(int i=1;i<=3;i++)
{
Sleep(300);
printf(".");
}
Sleep(300);
jiemian1();
printf("\n欢迎来到大乱斗!\n开发者:Aforxiaoxie\n\n");
atat:;
printf("1 登录\n2 注册\n");
scanf("%lld",&shuru);
if(shuru==1)
denglu();
else if(shuru==2)
zhuce();
else
{
printf("无效输入!!!\n");
jiazai();
jiemian1();
goto atat;
}
at:;
jiazai();
jiemian();
printf("1 排位\n");
printf("2 娱乐【开发中】\n");
printf("3 规则\n");
printf("4 升级属性\n");
printf("5 购买技能\n");
printf("6 退出\n");
int shuru1;
scanf("%lld",&shuru1);
if(shuru1==1)
paiwei();
else if(shuru1==2)
cout<<"开发中!\n";
else if(shuru1==3)
guize();
else if(shuru1==4)
shengji();
else if(shuru1==5)
jineng();
else if(shuru1==6)
{
string s=yonghuming+".in";
cundang(s);
printf("下次再来!\n");
return 0;
}
else
printf("无效输入!!!\n");
goto at;
return 0;
}
C++大乱斗小游戏代码
于 2024-08-05 08:45:33 首次发布