?? lpiece.h
字號:
#ifndef wpiece_h
#define wpiece_h
#include "labour.h"
#include "piece.h"
#include "employee.h"
#include <iostream.h>
class LabourAndPiece:public LabourWorker,public PieceWorker
{
public:
LabourAndPiece(const char *,const char *,float,float,char);
~LabourAndPiece();
void earnings();
void setType(char);
void setQuantity(int);
void setBonus(int);
static LabourAndPiece *getFirst() const;
virtual Employee *getNext() const;
static int getAmount() const;
static long int getTotalM() const;
static long int getTotalMp() const;
static long int getTotalMl() const;
virtual int getSalary() const;
static void delAll();
static void printList(int,int,int);
static void saveList(ofstream &);
virtual void display(ostream &) const;
private:
static int amount;
static long int totalM;
static long int totalMp;
static long int totalMl;
int salary;
static LabourAndPiece *first;
static LabourAndPiece *end;
LabourAndPiece *next;
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -