By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,750 Members | 1,165 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,750 IT Pros & Developers. It's quick & easy.

help keeping my loop in columns

P: 4
Hi everyone, for my c++ class I am supposed to write a program that looks like the program at this link.[HTML]http://www.brentwoodhigh.com/kedigh/cpp/labs/Prog122a.htm[/HTML]

I am doing fine with everything, except I can't seem to get everything to align neatly in columns, so if someone could please give me a tip on how to do this it would be greatly appreciated. Thanks.
Nov 5 '06 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 1,510
use the setw() manipulator to set the feild witdh, see
http://www.cplusplus.com/ref/iostream/iomanip/setw.html
Nov 5 '06 #2

Post your reply

Sign in to post your reply or Sign up for a free account.