=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 102
下载积分: 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 个回复

  • 5687557
    UILabel中美化字体的例子,精选ios编程学习源码,很好的参考资料。(Beautify the font UILabel example, selection of learning IOS programming source code, a good reference.)
    2013-12-13 18:34:09下载
    积分:1
  • 1234568
    中文信息逆向分词程序 是用api实现的(Chinese Information reverse segmentation process is achieved by api)
    2008-12-20 22:47:31下载
    积分:1
  • com
    VS2010串口例程,VC2010写的串口调试助手,开发环境为VS2010,使用的uncioud环境,纯API,不错的C++串行通讯例子程序,希望能对串口学习的朋友有所帮助 (VS2010 serial routines, VC2010 write serial debugging assistant development environment VS2010, using uncioud environment, pure API, a good example of C++ serial communication program, hoping to help a friend learn the serial port)
    2011-08-11 13:20:01下载
    积分:1
  • timertest
    arm7s3c44b0的定时器应用 ,timetest(arm7s3c44b0 timer application, timetest)
    2008-05-11 16:59:53下载
    积分:1
  • C#连接mysql 示例代码类源码下载
    C#连接mysql
    2015-03-22下载
    积分:1
  • kringing
    数值分析算法学习笔记之克里格插值及其实现2009-04-21 22:25克里格,或者说克里金插值Kriging。法国krige名字来的。 特点是线性,无偏,方差小,适用于空间分析。所以很适合地质学、气象学、地理学、制图学等。 (kringing)
    2009-05-13 14:40:36下载
    积分:1
  • Excel
    Excel操作,用语VISUAL C++6.0 ,好东西来着,可以通过此做报表功能(Excel operations, terminology VISUAL C++ 6.0, good things come forward, you can make statements through this function)
    2008-04-11 19:56:02下载
    积分:1
  • BF561Booting-(C)
    AD公司BF561引导例程,可帮助初学者快速掌握引导程序的开发(AD company BF561 boot routine can help beginners to quickly master boot program development)
    2012-03-28 19:33:00下载
    积分:1
  • ucos-task-scheduler-code
    ucos任务调度器的代码,有兴趣的可以分析一下(ucos task scheduler code, are interested can analyze)
    2014-12-30 16:54:07下载
    积分:1
  • 123
    对复杂边缘检测的Snake改进算法.pdf,snake算法(Complex Snake improved edge detection algorithm. Pdf, snake algorithm)
    2008-01-21 22:45:28下载
    积分:1
  • 696516资源总数
  • 106474会员总数
  • 2今日下载