previous
|
index
|
next
Formatting Output
You can use I/O
manipulators
to line up tabular output in columns. For example:
cout << setw(
width
) <<
expression
tells
cout
to output the value of
expression
by right-justifying it in a field width of size
width
.
previous
|
index
|
next