📄 employ1.h
字号:
// Fig. 7.9: employ1.h
// An employee class
#ifndef EMPLOY1_H
#define EMPLOY1_H
class Employee {
public:
Employee( const char*, const char* ); // constructor
~Employee(); // destructor
const char *getFirstName() const; // return first name
const char *getLastName() const; // return last name
// static member function
static int getCount(); // return # objects instantiated
private:
char *firstName;
char *lastName;
// static data member
static int count; // number of objects instantiated
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -