=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< =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<
登录
首页 » c++ » 玩家PK

玩家PK

于 2022-08-02 发布 文件大小:304.42 kB
0 122
下载积分: 2 下载次数: 1

代码说明:

#include #include #include #include #include #include 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • ghmg
    正则式到有穷自动机 有个别软件在安装时金山毒霸会提示存在木马程序,属于误报。原因是在用(Regular style to DFA has individual software installation Jinshan drug tyrants will be prompted to exist Trojans are false positives. The reason is that the use of)
    2008-05-30 18:54:53下载
    积分:1
  • chuankou
    串口函数,蛮好,测试过的,值的一看,用了才知道好。(Serial port functions just fine, tested, value a look, used to know better.)
    2013-11-18 20:41:30下载
    积分:1
  • ir
    说明:  PIC单片机红外线遥控接收解码实例 //芯片配置字,看门狗关,上电延时开,掉电检测关,低压编程关,加密,4M晶体HS振荡(PIC Microcontroller Infrared Remote Control Receiver Decoder instance of// chip configuration word, watchdog off, power-on delay to open, brown-out detection pass, low-voltage programming off, encryption, 4M crystal oscillator HS)
    2010-03-05 19:40:41下载
    积分:1
  • MyContourV3.0
    根据文件生成等值线 等值面 并具有原画效果 vS2010打开运行即可(Open can be run according to documents generated contour isosurface original painting effects vS2010)
    2013-01-13 19:03:17下载
    积分:1
  • 2.STM32控制代码
    说明:  对于新手调试入手很快,通过32单片进行通信控制,及算法运算给(For beginners, debugging starts very quickly, communication control is carried out through 32 single chip, and arithmetic operation is given to them.)
    2020-06-25 03:40:02下载
    积分:1
  • Revit导出JSON数据源代码
    说明:  Revit插件将rvt转换为obj,这个是一个revit的插件,作用是将rvt转换为obj格式(The Revit plug-in converts RVT to obj, which is a Revit plug-in that converts RVT to obj format)
    2020-12-12 10:39:18下载
    积分:1
  • AltitudeKF-master
    说明:  一个关于姿态的卡尔曼滤波器用着非常不错大家都来用用(A linear Kalman filter estimating altitude and vertical velocity by doing sensor fusion of acceleration and any altitude measurement such as e.g. barometer or SONAR.)
    2020-12-14 10:12:32下载
    积分:1
  • 16-I2C_EEPROM
    风驰的stm8开发板例程 (program For STm8 )
    2014-10-29 10:02:27下载
    积分:1
  • PMAC-Executive-Pro2-Suite_4_4_0_0
    pmac应用软件 主要用于PMAC运动控制卡的开发(application of pmac)
    2021-03-06 12:09:30下载
    积分:1
  • ARM7自学ppt
    本文件包含7章理论学习和4章手动实验,内容涉及SPI协议,动态扫描,串口传输,电机控制等(This document contains 7 chapters of theoretical learning and 4 chapter manual experiments, involving SPI protocol, dynamic scanning, serial port transmission, motor control and so on.)
    2018-05-14 15:30:41下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载