欢迎来到天天文库
浏览记录
ID:55631054
大小:51.00 KB
页数:18页
时间:2020-05-21
《C++员工管理系统.doc》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、#include#include#include#include#include#include#include#includeusingnamespacestd;intcount=0;doubletotalPay=0;intnemberOfopinions=0;ofstream*file[50];intBossflag=0;voidmenu();intpassword();classProfession//职业{charrank;//等级floa
2、tbasicSalary;//基础工资floatallowance;//津贴floatmedicalInsurance;//医疗保险doubleoverTimePay;//加班费public:Profession(charnr=0,floatnb=0,floatna=0,floatnm=0,doubleno=0):rank(nr),basicSalary(nb),allowance(na),medicalInsurance(nm),overTimePay(no){}//构造chargetRank(){returnrank;}voidinputRank(charc);floatgetBa
3、sicSalary(){returnbasicSalary;}voidinputBasicSalary(floatb);floatgetAllowance(){returnallowance;}voidinputAllowance(floati);floatgetMedicalInsurance(){returnmedicalInsurance;}voidinputMedicalInsurance(floatm);doublegetOverTimePay(){returnoverTimePay;}voidinputOverTimePay(doubleo);};voidProfessio
4、n::inputRank(charc){rank=c;}voidProfession::inputAllowance(floati){allowance=i;}voidProfession::inputBasicSalary(floatb){basicSalary=b;}voidProfession::inputMedicalInsurance(floatm){medicalInsurance=m;}voidProfession::inputOverTimePay(doubleo){overTimePay=o;}/*classLetter{stringletter;public:str
5、inggetL(){returnletter;}};*/classWorker:publicProfession//员工{stringname,profession,letter;intID;doublewages;//税后工资doublesalary;//税前工资doubletotalWorkingtime;//总工时charperson;//态度//等级intpersonalPassword;//个人密码intrankflag;//升级标志intletterflag;//信件intmoneyflag;//加薪标志public:Worker(intx=0,inty=0,intz=0)
6、:rankflag(x),letterflag(y),moneyflag(z){}stringgetName(){returnname;}voidinputName(stringn);intgetID(){returnID;}voidinputID(inti);stringgetProfession(){returnprofession;}voidinputProfession(stringp);voidgetLetter(){cout<7、alworkingtime(doublet);doublereTotalworkingtime(){returntotalWorkingtime;}chargetPerson(){returnperson;}doublegetSalary(){returnsalary;}intgetMf(){returnmoneyflag;}intgetRf(){returnrankflag;}intgetLf(){returnletterflag;}void
7、alworkingtime(doublet);doublereTotalworkingtime(){returntotalWorkingtime;}chargetPerson(){returnperson;}doublegetSalary(){returnsalary;}intgetMf(){returnmoneyflag;}intgetRf(){returnrankflag;}intgetLf(){returnletterflag;}void
此文档下载收益归作者所有