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

  • ku
    《实战OpenGL三维可视化系统开发与源码精解》里的库文件,需要的拿走。(" Practically OpenGL visualization system development and source fine solution" where the library files needed away.)
    2013-08-02 11:27:56下载
    积分:1
  • RTSP
    c++ RTSP Client/Server - win32/linux/android.  可以作为RTSP的服务端,发送视频流。 可以作为RTSP的客户端,读取视频流,并且保存进文件。
    2022-02-10 00:57:02下载
    积分:1
  • TLC5615
    TCL5615锯齿波及播放声音测试,模块化清晰(TCL5615 sawtooth and play a sound test, modular clear)
    2010-08-13 11:11:41下载
    积分:1
  • kemodel
    一个对Fluent中k-e湍流模型的修正udf程序,c语言(One pair ke turbulence model in Fluent udf amendment procedures)
    2021-01-02 15:38:57下载
    积分:1
  • tb6600驱动步进电机
    运用tb6600模块驱动步进电机 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报
    2022-07-21 22:20:52下载
    积分:1
  • 新建文本文档 (4)
    说明:  实现material studio多晶型物预测(Realize the prediction of material studio polycrystalline)
    2020-02-11 17:25:02下载
    积分:1
  • PICC18编程快速入门-源码
    说明:  1. Test1文件夹内的例子为《第2章 PICC18编程快速入门》中的例程。 2. Chart-04、Chart-05、……、Chart-16分别是第4章、第5章、……、第16章中的例程,每章节下的文件夹分别标明是该章的例程号,如Chart-04文件夹下的Exam-4-1文件夹内的程序是第4章的第1个例程,其余以此类推。 3. Chart-12文件夹下的Exam-12-2-main表示12章例2中的主机程序,Exam-12-2-Slave表示12章例2的从机程序。Chart-16文件夹下的pic18-PSP文件夹下PSP-Master内的程序是第16章中PSP例程的主机程序,PSP-slave是第16章中PSP例程的从机程序。(1. Examples in the Test1 folder are the routines in Chapter 2 PICC18 Programming Quick Start. 2. Chart-04, Chart-05,... Chart-16 is Chapter 4, Chapter 5,... Chapter 16 of the routine, the folders under each chapter are marked as the routine number of the chapter, such as Chart-04 folder under Exam-4-1 folder procedures are the first routine of Chapter 4, the rest of the same. 3. Exam-12-2-main under the Chart-12 folder represents the host program in Chapter 12, Example-12-2-Slave represents the slave program in Chapter 12, Example-2. The program in PSP-Master under pic18-PSP folder under Chart-16 folder is the host program of PSP routine in Chapter 16, and PSP-slave is the slave program of PSP routine in Chapter 16.)
    2020-06-19 14:14:38下载
    积分:1
  • demo_7_1_c
    说明:  A V R 单 片 机 的 外 部 中 断 应 用 程 序 (AVR MCU external interrupt applications)
    2009-08-02 13:22:19下载
    积分:1
  • worldguard-5.7.3
    worldedit java plugin
    2013-07-27 22:15:42下载
    积分:1
  • BCG-and-ECG-monitor-based-on-msp430
    实现ECG和BCG信号采集和同步监测,对采集的信号进行了特征量提取并作出相应诊断,波形显示在液晶屏上。(Achieve ECG and BCG signal acquisition and simultaneous monitoring of the collected signals feature extraction and make the appropriate diagnosis, the waveform displayed on the LCD screen.)
    2020-06-30 17:20:02下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载