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();
};