⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 labour.h

📁 1、 模拟一间公司(有普通工人、经理、销售员、计时工人和计件工人)的雇员月工资单管理系统
💻 H
字号:
#ifndef labour_h
#define labour_h
#include "employee.h"

class LabourWorker:virtual public Employee
{
public:
  LabourWorker(const char *,const char *,float);
  LabourWorker(float);
  ~LabourWorker();
  void earnings();
  void setBonus(int);
  static LabourWorker *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;
protected:
  int wages;
  int bonus;
  int salary;
  static long int totalM;
private:
  static int amount;
  static LabourWorker *first;
  static LabourWorker *end;
  LabourWorker *next;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -