employee.h
来自「1、 模拟一间公司(有普通工人、经理、销售员、计时工人和计件工人)的雇员月工资单」· C头文件 代码 · 共 25 行
H
25 行
#ifndef employee_h
#define employee_h
#include <iostream.h>
#include <fstream.h>
class Employee{
public:
Employee(const char *,const char *);
virtual ~Employee();
const char *getFirstName() const;
const char *getLastName() const;
static int getAmount() const;
static long int getTotalM() const;
virtual void display(ostream &) const;
virtual Employee *getNext() const=0;
virtual int getSalary() const=0;
protected:
char *firstName;
char *lastName;
static long int totalM;
private:
static int amount;
};
ostream &operator<<(ostream &,Employee &);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?