- 3
- 0
- 约9.93千字
- 约 13页
- 2019-09-08 发布于湖北
- 举报
#include iostream.h
#include fstream.h
#include ctype.h
#include string.h
//全局数据,对象
double ManagerSalary=6000; //经理固定月薪
double SalesManagerSalary=4000; //销售经理固定月薪
double SalesManagerPercent=5; //销售经理提成%
double SalesPercent=0.5; //销售人员提成%
double WagePerHour=50; //技术人员小时工资
int ID; //员工标识
class Person //员工类
{
protected:
int No; //编号
char Name[20]; //姓名
int Duty; //岗位
double Earning; //收入
Person *next; // 指向员工类的指针
public:
Person(char ID,char *Name,int Duty)
{
this-Duty=Duty;
strcpy(this-Name,Name);
this-No=ID;
}
原创力文档

文档评论(0)