版本比较
名字大作战V1.4
正文
增加 21 行删除 21 行
127 行未改动全部展开1281291301311321321331341351362 行未改动13914014114214314314414514514614714714814915015115 行未改动16716816917017117117217317417516 行未改动19219319419519619619719819920020120220220320420520634 行未改动24124224324424524524624724824915 行未改动26526626726826926927027127227332 行未改动3063073083093103103113123133148 行未改动32332432532632732732832933033139 行未改动3713723733743753753763773783795 行未改动3853863873883893893903913923933943943953963973983994004004014024034044054064064074084094104 行未改动41541641741841941942042142242321 行未改动44544644744844944945045145245315 行未改动46947047147247347347447547647747 行未改动52552652752852952953053153253325 行未改动559560561562563563564565566127 行未改动全部展开 cout<<num2%65; cout<<" "<<"智"<<" "; cout<<num2%100<<endl;// cout << endl; cout << endl; srand(time(0)); int randd=rand()%2; if(randd==1) cout << name1;2 行未改动 cout <<"先手\n"; Sleep(3000);// Sleep(1000); cout << 3 << endl; cout << 3 << endl; Sleep(1000); cout << 2 << endl; cout << 2 << endl; Sleep(1000); cout << 1 << endl; cout << 1 << endl; Sleep(1000); cout <<"Go!!!\n"; Sleep(1000); system("cls");15 行未改动 int ran=rand()%2+1; if(ran==1) fs=1; hp1+=jishu*gj[fs]; cout << name1 <<"使用"<< jin[fs] <<",回复"<< jishu*gj[fs] <<"点hp "; cout << name1 <<"使用"<< jin[fs] <<",回复"<< jishu*gj[fs] <<"点hp "; cout << name1 <<"hp:"<< hp1 <<'\n'; } else if(fs==8)16 行未改动 else if(fs==12) { tb1=4; cout << name1 <<"发动铁壁!\n"; cout << name1 <<"发动铁壁!\n"; } else if(fs==15) { ft1=2; cout << name1 <<"发动伤害反弹盾!\n"; cout << name1 <<"发动伤害反弹盾!\n"; } else if(fs==14) {34 行未改动 else { int ran=rand()%3+3; hp2*=(10-ran)*0.1; cout << name1 <<"发动瘟疫,"<< name2 <<"的hp减少"<< ran <<"0%。 "<< name2 <<"hp:"<< hp2 << endl; cout << name1 <<"发动瘟疫,"<< name2 <<"的hp减少"<< ran <<"0%。 "<< name2 <<"hp:"<< hp2 << endl; } } else cout << name1 <<"发动会心一击 "<< name2 <<"hp-30\n",hp2-=30;15 行未改动 else { if(jin[fs]=="背刺") { cout << name1 <<"潜行到"<< name2 <<"的背后\n"; cout << name1 <<"潜行到"<< name2 <<"的背后\n"; int sss=rand()%3; if(sss==1) cout << name1 <<"的潜行被识破\n\n"; else32 行未改动 { hp2-=1; cout << name2 <<"hp-1\n"; } else else if(ft2!=0) { hp1-=abs(jishu*gj[fs]+gj1-fy2); cout << name1 <<"hp-"<< abs(jishu*gj[fs]+gj1-fy2) <<'\n';8 行未改动 } else if(randon==1) cout << name2 <<"闪避, hp-0\n"; else else { cout << name2 <<"hp-"<< abs(jishu*gj[fs]+gj1-fy2) <<'\n'; hp2-=abs(jishu*gj[fs]+gj1-fy2); }39 行未改动 int ran=rand()%2+1; if(ran==1) fs=1; hp2+=jishu*gj[fs]; cout << name2 <<"使用"<< jin[fs] <<",回复"<< jishu*gj[fs] <<"点hp "; cout << name2 <<"使用"<< jin[fs] <<",回复"<< jishu*gj[fs] <<"点hp "; cout << name2 <<"hp:"<< hp2 <<'\n'; } else if(fs==8)5 行未改动 cout << name2 <<"hp:"<< hp2 <<" "; cout << name1 <<"hp:"<< hp1 <<'\n'; } else { { swap(hp1,hp2); cout << name2 <<"使用生命之轮,"<< name2 <<"的生命和"<< name1 <<"的生命互换。 "; cout << name2 <<"hp:"<< hp2 <<" "; cout << name1 <<"hp:"<< hp1 <<'\n'; } } } else if(fs==12) { tb2=4; cout << name2 <<"发动铁壁!\n"; cout << name2 <<"发动铁壁!\n"; } else if(fs==15) { ft2=2; cout << name2 <<"发动伤害反弹盾!\n"; cout << name2 <<"发动伤害反弹盾!\n"; } else if(fs==14) {4 行未改动 hp1-=12; cout << name2 <<"hp:"<< hp2 <<'\n'; cout << name1 <<"hp:"<< hp1 <<'\n'; } else else cout << name2 <<"发动净化! "<< name2 <<"被净化了。\n"; if(du2!=0) du2=0; }21 行未改动 else { int ran=rand()%3+3; hp1*=(10-ran)*0.1; cout << name2 <<"发动瘟疫,"<< name1 <<"的hp减少"<< ran <<"0%。 "<< name1 <<"hp:"<< hp1 << endl; cout << name2 <<"发动瘟疫,"<< name1 <<"的hp减少"<< ran <<"0%。 "<< name1 <<"hp:"<< hp1 << endl; } } else cout << name2 <<"发动会心一击 "<< name1 <<"hp-30\n",hp1-=30;15 行未改动 else { if(jin[fs]=="背刺") { cout << name2 <<"潜行到"<< name1 <<"的背后\n"; cout << name2 <<"潜行到"<< name1 <<"的背后\n"; int sss=rand()%3; if(sss==1) cout << name2 <<"的潜行被识破\n\n"; else47 行未改动 } else if(randon==1) cout << name1 <<"闪避, hp-0\n"; else else { cout << name1 <<"hp-"<< abs(jishu*gj[fs]+gj2-fy1) <<'\n'; hp1-=abs(jishu*gj[fs]+gj2-fy1); }25 行未改动 if(hp1>0) cout << name1 <<"赢了。"; else cout << name2 <<"赢了。"; system("pause"); system("pause"); return 0;}```