Hi, I am looking at your code and have not got a chance to review it in depth yet. I just wanted to clarify that your trying to make a payroll program to compute employee pay information like for a company right?
Check out http://www.simplecomputerapps.webs.com and try out their payroll app. If this is what you want yours to do, then I can better assist you. That site is mine and that application is mine but I made mine in a completely different way. Your code seems to be much more efficient than the code with which I used to program mine but at the same time, that can cause issues with errors that are harder to find. My program uses a couple hundred lines of code and uses structures as well as arrays but it is easier to spot issues when they occur.
If you have time, check it out and let me know how I can assist you further.
Hey you did just small mistake your code is working at all..
your code at line 29-30
cout<<setw(14)<<empid[i]<<setw(16)<<fname[i]<<setw(17)<<lastname[i]<<setw(4)
<<hw[i]<<setw(5)<<hr[i]<<setw(6)<<gp[i]">>"setw(6)<<taxamt[i]<<setw(9)<<np[i]<<endl;
correct one is
cout<<setw(14)<<empid[i]<<setw(16)<<fname[i]<<setw(17)<<lastname[i]<<setw(4)
<<hw[i]<<setw(5)<<hr[i]<<setw(6)<<gp[i]"<<"setw(6[/quote])<<taxamt[i]<<setw(9)<<np[i]<<endl;
Oh, and another thing i just noticed is your main function is not set up to run as a function. You need to declare it as an "int" type in front of the word main().