Thursday, July 30, 2009

Im having some compilerproblems in c++ its a very simple program im a complete noob to this pleace help?

#include %26lt;iostream%26gt;


#include%26lt;iomanip%26gt;


#include%26lt;string%26gt;


unsing namespace std:


int name()


{


string en //Employee name


hw, //Hours Worked


hr, //Hourly Rate


tw, //Total Wages


fe, //Federal Withholdings


sw, //State Withholdings


h, //Hospitalization


ud; //Union Dues


td; //Total Deduction


np; //Net Pay


cout%26lt;%26lt;fixed%26lt;%26lt;shouwpoint%26lt;%26lt;setprecision(...


cout%26lt;%26lt;"\nPlease enter Employee Name."%26lt;%26lt;endl;


cin%26gt;%26gt;en;


cout%26lt;%26lt;"\nPlease enter Hours Worked."%26lt;%26lt;endl;


cin%26gt;%26gt;hw;


cout%26lt;%26lt;%26lt;%26lt;\nPlease enter Hourly Rate"%26lt;%26lt;endl;


cin%26gt;%26gt;hr;


tw=hw*hr;


fw=(tw*18)/100;


sw=(tw*4.5)/100;


h=25.65;


ud=(tw*2)/100;


td=fw+sw+h+ud;


np=tw-td;


cout%26lt;%26lt;"Emplyee\t\t\t"%26lt;%26lt;":"%26lt;%26lt;setw(10)%26lt;%26lt;...


cout%26lt;%26lt;"Hours Worked\t\t"%26lt;%26lt;":"%26lt;%26lt;setw(10)%26lt;%26lt;hw%26lt;%26lt;endl;


cout%26lt;%26lt;"Hourly Rate\t\t\t\"%26lt;%26lt;":"%26lt;%26lt;setw(10)%26lt;%26lt;hr%26lt;%26lt;\n\n;


cout%26lt;%26lt;"Deductions\n"


cout%26lt;%26lt;"Federal Withholdings\t"%26lt;%26lt;":"%26lt;%26lt;setw(10)%26lt;%26lt;td%26lt;%26lt;endl...


cout%26lt;%26lt;"State Withholdings\t"%26lt;%26lt;":"%26lt;%26lt;setw(10)%26lt;%26lt;sw%26lt;%26lt;endl...


cout%26lt;%26lt;"Hospitalization\t"%26lt;%26lt;":"%26lt;%26lt;setw(1...

Im having some compilerproblems in c++ its a very simple program im a complete noob to this pleace help?
Hey what error compiler is giving??

hawthorn

No comments:

Post a Comment