全文预览

C++课程设计公司人员管理系统

上传者:非学无以广才 |  格式:doc  |  页数:20 |  大小:306KB

文档介绍
();cout<<No<<"\t"<<Name<<"\t经理\t"<<Earning<<endl;}};classSalesManager:publicPerson//销售经理类{private:doubleAmount;public:SalesManager(charID,char*Name,intDuty):Person(ID,Name,Duty){}voidSetAmount(doubles){Amount=s;}voidCalcSalary(){Earning=SalesManagerSalary+Amount*SalesManagerPercent/100;}voidOutput(){CalcSalary();cout<<No<<"\t"<<Name<<"\t销售经理\t"<<Earning<<endl;}};classTechnician:publicPerson//技术员类{private:doublet;public:Technician(charID,char*Name,intDuty,doubleT):Person(ID,Name,Duty){this->t=T;}doubleGetT(){returnt;}voidSetT(doubleT){this->t=T;}voidCalcSalary(){Earning=WagePerHour*t;}voidOutput(){CalcSalary();cout<<No<<"\t"<<Name<<"\t技术员\t"<<t<<"\t"<<Earning<<endl;}};classSales:publicPerson//销售员类{private:doubleAmount;public:Sales(charID,char*Name,intDuty,doubleAmount):Person(ID,Name,Duty){

收藏

分享

举报
下载此文档