11363人加入学习
(31人评价)
【旧版】C++编程系列 预备季快速上手

旧版课程,制作完成于2017-12-18

价格 免费

Class

类的声明

 void skill1(){

cout<<"技能1"<<endl;

}

 void skill2(){

cout<<"技能2"<<endl;

}

 void skill3(){

cout<<"技能3"<<endl;

}

 

int main()

{

string name="东皇太一";

int hp;

int mp;

int attackPhysics;

int attackMagic;

int defensePhysics;

int defenseMagic;

 

 

string str;

cin>>str;

return 0;

}

头文件

#progma once

class Namexxxx {

//类的成员

public:

//

//

//

private:

//

//

//

 

};

class Enemy

{

public:

int HP;

int Damage;

 

void Attack();

void TakeDamage();

};

 

 

[展开全文]

#include

<> 库文件

自己创建的用“”

.h文件是头文件

.cpp是源文件

[展开全文]

授课教师

SiKi学院老师

课程特色

图文(1)
下载资料(2)
视频(40)