C++ cout formatting output
Posted on In QAHow to format outputs with cout
in C++?
You need IO Manipulators <iomanip>: Header providing parametric manipulators.
There are also good tutorials on the Web:
Output Formatting: http://arachnoid.com/cpptutor/student3.html
Formatting Cout Output in C++ using iomanip: http://www.cprogramming.com/tutorial/iomanip.html