hero.h
来自「自己编的一个游戏魂斗罗-宠物精灵版」· C头文件 代码 · 共 17 行
H
17 行
#ifndef _HERO_H
#define _HERO_H
#include"stdafx.h"
#include"person.h"
class Hero:public Person
{
int score;
public:
Hero():Person(){score=0;hp=1;}
void increasescore(int s){score+=s;}
int getscore()const{return score;}
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?