Player PK
2020-06-30
0 0 0
no vote
Other
Earn points
#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="&
Related Source Codes
Android AOA Android Open Accessory Development Usi
0
0
no vote
Golang AOA Android Open Accessory HID Control
0
0
no vote
PClite
0
0
no vote
GMSK Linear Receiver
0
0
no vote
The golden version of AFT that has been passed dow
0
0
no vote
No comment