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

📄 employee.h

📁 C++课程设计
💻 H
字号:
//employee.h
class employee
{
protected:
	char name[20];
	int individualEmpNo;
	int grade;
	float accumPay;
	static int employeeNo;
public:
	employee();
	~employee();
	void SetName(char *);
	char *GetName();
	void promote(int);
	void SetaccumPay(float pa);
	int GetindividualEmpNo();
	int Getgrade();
	virtual void pay(){};
	float GetaccumPay();
};
class technician:public employee
{
private:
	float hourlyRate;
	int workHours;
public:
	technician();
	void SetworkHours(int wh);
	void pay();
	void promote(int);
};
class salesman:virtual public employee
{
protected:
	float CommRate;
	float sales;
public:
	salesman();
	void Setsales(float sl);
	void pay();
	void promote(int);
};
class manager:virtual public employee
{
protected:
	float monthlyPay;
public:
	manager();
	void pay();
	void promote(int);
};
class salesmanager:public manager,public salesman
{
public:
	salesmanager();
	void pay();
	void promote(int);
};
struct empstu//以结构体存储在文件中
{
	int state;
	char name[20];
	int individualno;///////////////////////////////bianhao
	int grade;
	float salary;
};
int startno();

⌨️ 快捷键说明

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