📄 people.h
字号:
//类CPeople的定义
#include <iostream >
using namespace std;
class CPeople
{
int m_nAge;
float m_fSalary;
public:
char *m_pstrName;
CPeople();
~CPeople();
CPeople(int age, float salary, char* name);
float GetSalary () const;
void SetSalary (float);
int GetAge() const;
void SetAge( int age );
CPeople& operator=(const CPeople &AnotherPeople);
friend ostream& operator<<(ostream& stream, const CPeople& p);
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -