版本比较
广告
正文
增加 6 行删除 6 行
7 行未改动8910111212131415169 行未改动26272829303031323334152 行未改动全部展开187188189190191191192193194195104 行未改动全部展开30030130230330430430530630730845 行未改动3543553563573583583593603613623633643653663673683683693703713726 行未改动7 行未改动#include<stdlib.h>#include<windows.h>#include<time.h>#include<direct.h>//https://www.bilibili.com/opus/189576459128205353 //https://www.bilibili.com/opus/189576459128205353using namespace std;int i,j,k,win[10],x;struct zombies{ int hp,sh,huo,fy,dj;9 行未改动 struct wq{ string name; int naij,sh,fl,nj,hyfj; void kill(zombies &x) { { x.hp-=ceil((sh+fl)*1.0/(1+x.fy*1.0/20)); x.huo=hyfj*3; } void print()152 行未改动全部展开 players.jy+=y.dj; return; } players.ss(zb.sh); clean(); clean(); } if(players.hp<=0&&!sw) { cout<<"you die";104 行未改动全部展开 players.hp=30; zb.hp=40;zb.sh=4; pve(players,zb); cout<<"你成功了";getc(); cout<<"恭喜获得盾牌";getc(); cout<<"恭喜获得盾牌";getc(); players.d[4].name="铁护腿"; players.d[4].fy=5; players.d[4].bh=1; players.dp=1;45 行未改动 p[1]="初来乍到"; p[2]="白天探索"; p[3]="夜晚得宝"; p[4]="披荆斩棘"; p[5]="兵团pvp!"; p[5]="兵团pvp!"; win[1]=1; while(1) { clean(); print1(); cout<<"请选择(0是保存并退出):";cin>>x; if(x==0)players.cd(),exit(0); players.hp=20; if(!win[x])cout<<"未解锁"; else else { if(x==1)p1(); if(x==2)p2(); if(x==3)p3();6 行未改动