GSXdan
11-25-2003, 11:06 AM
How do you format the output so it all lines up perfectly? I am using iomanip and i have setw(15), but it still doesnt line up correctly.
cout << setw(15) << player[x]->getcash() << endl;
stil gives me this:
*******************************
Sam 1500
Mary 1000
Pete 500
Sue 500
McDonald Hall unowned
Commons Eatery unowned
Darrow Hall unowned
Bromfield Hall unowned
Keeper Eatery unowned
Founders Hall unowned
Offenhauer Hall unowned
The Nest Eatery unowned
Dunbar Hall unowned
Compton Hall unowned
Sundial Eatery unowned
Anderson Hall unowned
*******************************
cout << setw(15) << player[x]->getcash() << endl;
stil gives me this:
*******************************
Sam 1500
Mary 1000
Pete 500
Sue 500
McDonald Hall unowned
Commons Eatery unowned
Darrow Hall unowned
Bromfield Hall unowned
Keeper Eatery unowned
Founders Hall unowned
Offenhauer Hall unowned
The Nest Eatery unowned
Dunbar Hall unowned
Compton Hall unowned
Sundial Eatery unowned
Anderson Hall unowned
*******************************