using namespace std;
class salary
{
private:
double wage;
double subsidy;
double rent;
double waterfee;
double elecfee;
public:
salary();
salary(double a,double b,double c,double d,double e)
{
wage=a;
subsidy=b;
rent=c;
waterfee=d;
elecfee=e;
}
void setwage(double a1){ wage=a1;}
void setsubsidy(double a2){ subsidy=a2;}
void setrent(double a3) {rent=a3;}
void setwaterfee(double a4) {waterfee=a4;}
void elecfee(double a5){ elecfee=a5;}
double getwage() {return wage;}
double getsubsidy(){ return subsidy;}
double getrent(){ return rent;}
double getwaterfee(){ return waterfee;}
double getelecfee() {return elecfee;}
void RealSalary()
{
double s=wage+subsidy-rent-waterfee-elecfee;
cout<<"the real salary is:"<
}
}
void main()
{
class salary wang(4000.00,55.00,332.00,324.00,100.00);
wang.RealSalary();
}