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
Printable View
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
look at setw modifier
im sure this will help http://www.arachnoid.com/cpptutor/student3.html