26
Manipulators and methods
•
endl – places newline character in stream
and
flushes the buffer.
•
setf() and unsetf()
left justification
ios::left
right justification
ios::right
scientific notation
ios::scientific
fixed decimal notation
ios::fixed
display the decimal point
ios:: showpoint
Meaning
Flag
4
Manipulators in <iomanip>
–
setprecision(n)
–
setw(n)