玩家PK
2020-06-30
0 0 0
暂无评分
其他
如何获取积分?
#include<iostream> #include <cmath> #include <algorithm> #include <iomanip> #include <string> #include <cstring> using namespace std; class Role { protected: int hp,ce,de,fa; int flag; string nn; public: Role(string n, int h, int c, int d, int f):nn(n),hp(h),ce(c),de(d),fa(f) {} ~Role() {} void combat(Role &an) { if(fa>an.fa) { flag=1; loop2: cout<<nn<<" attacks "<<an.nn<<":"; if(an.de>=ce) { an.hp--; an.de--; } else { an.hp=an.hp-ce+an.de; an.de--; } if(an.hp<0) { an.hp=0; } if(an.de<0) { an.de=0; } cout<<an.nn<<" hp="&
相关源码推荐
使用Java开发Android AOA Android开放式附件
0
0
暂无评分
Golang AOA Android开放式附件HID控制
0
0
暂无评分
pclite
0
0
暂无评分
GMSK线性接收机
0
0
暂无评分
传世AFT中变打金版版本--以前很火爆的,收藏很久
0
0
暂无评分
暂无评论