📄 piece.h
字号:
#ifndef piece_h
#define piece_h
#include "employee.h"
class PieceWorker:virtual public Employee
{
public:
PieceWorker(const char *,const char *,float,char);
PieceWorker(float,char);
~PieceWorker();
void earnings();
void setType(char);
void setQuantity(int);
static PieceWorker *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 perPiece;
int quantity;
int salary;
char type;
static long int totalM;
private:
static int amount;
static PieceWorker *first;
static PieceWorker *end;
PieceWorker *next;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -