();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){