教工信息管理系统解读.docVIP

  • 6
  • 0
  • 约1.01万字
  • 约 14页
  • 2017-06-10 发布于湖北
  • 举报
#include iostream.h #include fstream.h #include ctype.h #include string.h //全局数据,对象 double CSalary; //文员的基本工资 double SSalary; //业务员的基本工资 double APSalary; //行政人员的基本工资 int ID; //教工工号(要保证唯一) class Person //员工类 { protected: int No; //编号 char Name[20]; //姓名 char Sex[10]; //性别 char Tel[20]; //联系方式 char Nation[30]; //国籍 int Duty; //职位 double Earning; //收入 Person *next; public: Person(char ID,char *Name,int Duty) { this-Duty=Duty; strcpy(this-Name,Name); this-No=ID; } virtual void CalcSalary()=0; virtual void Output()=0; friend class Company; }; class Cservant:public Pers

文档评论(0)

1亿VIP精品文档

相关文档