I need to format my output like "%5d\n", where all the output would be integers. Is there anyway to do this using cout?
For example, the output would look like:
Code:14640 6565
I need to format my output like "%5d\n", where all the output would be integers. Is there anyway to do this using cout?
For example, the output would look like:
Code:14640 6565
Last edited by Beowolf; 12-02-2007 at 11:27 PM.
"I don't fail - I succeed at finding things that don't work"
Website Promotion Techniques @AbstractPromotion.com
look at setw modifier
All problems in computer science can be solved by another level of indirection,
except for the problem of too many layers of indirection.
– David J. Wheeler
im sure this will help http://www.arachnoid.com/cpptutor/student3.html