manager.h
来自「1、 模拟一间公司(有普通工人、经理、销售员、计时工人和计件工人)的雇员月工资单」· C头文件 代码 · 共 33 行
H
33 行
#ifndef manager_h
#define manager_h
#include "employee.h"
class Manager:public Employee
{
public:
Manager(const char *,const char *,float,float);
~Manager();
void earnings();
void setWages(int);
void setSubsidy(int);
static Manager *getFirst() const;
virtual Employee *getNext() const;
static int getAmount() const;
static long int getTotalM() const;
virtual int getSalary() const;
static void delAll();
static void printList(int,int,int);
static void saveList(ofstream &);
virtual void display(ostream &) const;
private:
int wages;
int subsidy;
int salary;
static long int totalM;
static int amount;
static Manager *first;
static Manager *end;
Manager *next;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?