Can you explain a "show function above the main"
Didnt want to clog up forms with easy questions I keep having..
// Details
I made a header file and .cpp file to go with that, then i made my program file,
its outputting gross pay and income tax pay
this is my main() code
Code
int main(){
weeklyEmp emp("Lucas", 40, 10 , 3, "M");
cout.width(9); cout << emp.grossPay();
cout.width(13); cout << emp.incomeTax() << endl;
emp.set_rate(11.50);
cout.width(9); cout << emp.grossPay();
cout.width(13); cout << emp.incomeTax() << endl;
emp.set_hours(42);
cout.width(9); cout << emp.grossPay();
cout.width(13); cout << emp.incomeTax() << endl;
}
and i have to make a show function above the main.
would that be making the output look like
Code
Gross Pay Income Tax
====== =======
xxxx zzzzz
xxxx zzzzz
xxxx zzzz
originally sent to blind, he told me to post it up
This post was edited by Trig on Oct 7 2014 03:49pm