Hello,
I just needed help on spacing between columns. What is the easiest way to do that? I need to create like 10 spaces between the first row and then 2 spaces the next? Here is the code to what I have, but it's just bunching everything together.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
#include <iomanip>
usingnamespace std;
int main()
{
//format the output for money
cout.setf(ios::fixed); // no scientific notation
cout.setf(ios::showpoint); // always show the decimal point
cout.precision (2); //showing 2 decimal points
//display the first row
cout << "\tItem" << setw(10) << "Projected \n";
//display the second row
cout << "==================" << setw(2) << "============ \n";
return 0;
}