Hi I wrote this simple program to calculate tax and what not, been trying to figure out what is wrong with it. Fixed all of the errors except this one. Been trying to figure it out for hours. Any help would be greatly appreciated.
I have fixed your problem look nicely what mistake you have done.At first include header file #include<iomanip>
This header file is needed for setw() and setprecision() manupulator.
In line 7 your code is int main();
don't use semicolon after main. your code must look int main()
In line 34 cout << "------------------------" endl;
you have missed insertion operator (<<).your code must look cout << "------------------------" <<endl;
In line 36 cout << "Sales: " >> setw (8) << "$" << sales << endl;
you have used ">>" operator instead of "<<" operator and code must be like this. cout << "Sales: " << setw (8) << "$" << sales << endl;
I think I have fixe all the error.If anything occur you can ask any question or send email.You can also visit my blog www.codeincodeblock.blogspot.com for programming tips and trick.
Knew it would be something simple. Thanks alot, made all those changes and now it compiles fine. But now im having trouble when running it. When i run it now it starts, asks for the month, then the program just closes. Here is my code now.