欢迎来到天天文库
浏览记录
ID:36637304
大小:72.50 KB
页数:12页
时间:2019-05-13
《职工信息管理系统源代码》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、源代码#include#include#include#includedoubleCwage;doubleSwage;doubleMwage;intID;classDdegree{protected:intNum;charName[20];charSex[10];intBorntime;intAge;intdegree;doubleSalary;Ddegree*next;public:Ddegree(charID,char
2、*Ename,char*Esex,intEborntime,intEdegree){this->Num=ID;strcpy(this->Name,Ename);strcpy(this->Sex,Esex);this->Borntime=Eborntime;this->degree=Edegree;}voidGetage(){Age=2009-Borntime;}第12页共12页virtualvoidCalcwage()=0;virtualvoidOutput()=0;friendclassCompany;
3、};classXxs:publicDdegree{private:doubleWorkload;public:Xxs(charID,char*Ename,char*Esex,intEborntime,intEdegree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree){this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubleAm
4、ount){this->Workload=Amount;}voidCalcwage(){Salary=Cwage+Workload*20;}voidOutput(){Getage();Calcwage();cout<5、ic:Czs(charID,char*Ename,char*Esex,intEborntime,intEdegree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree){this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubleAmount){this->Workload=Amount;}voidCalcwage(){Salary=S6、wage+Workload*20+1000;}voidOutput(){Getage();Calcwage();cout<7、ree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree)第12页共12页{this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubles){Workload=s;}voidCalcwage(){Salary=Mwage+Workload*20+1000;}voidOutput(){Getage();Calcwage();cout<8、um<<"t"<
5、ic:Czs(charID,char*Ename,char*Esex,intEborntime,intEdegree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree){this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubleAmount){this->Workload=Amount;}voidCalcwage(){Salary=S
6、wage+Workload*20+1000;}voidOutput(){Getage();Calcwage();cout<7、ree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree)第12页共12页{this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubles){Workload=s;}voidCalcwage(){Salary=Mwage+Workload*20+1000;}voidOutput(){Getage();Calcwage();cout<8、um<<"t"<
7、ree,doubleEworkload):Ddegree(ID,Ename,Esex,Eborntime,Edegree)第12页共12页{this->Workload=Eworkload;}doubleGetWorkload(){returnWorkload;}voidSetWorkload(doubles){Workload=s;}voidCalcwage(){Salary=Mwage+Workload*20+1000;}voidOutput(){Getage();Calcwage();cout<8、um<<"t"<
8、um<<"t"<
此文档下载收益归作者所有