de<iomanip>usingnamespacestd;classMoney{stringname;floatWage,Subsidy,Reward,Deduct,SumWage;intnumber;public:Money(){};Money(intnum,stringn,floatW,floatS,floatR,floatD);floatgetSumWage();//实发工资friendvoidmain();};Money::Money(intnum,stringn,floatW,floatS,floatR,floatD){number=num;name=n;Wage=W;//基本工资Subsidy=S;//补贴工资Reward=R;//奖励工资Deduct=D;//扣除工资}floatMoney::getSumWage(){SumWage=Wage+Subsidy+Reward-Deduct;returnSumWage;}voidmain(){system("color0a");cout<<"*******************************************************************************"<<endl;cout<<"*******************************************************************************"<<endl;cout<<"*******************************************************************************"<<endl;cout<<"*******███████***-----欢迎来到工资管理系统--------***█████████*"<<endl;