| |
Using Manipulators to Format I/O |
|
|
/*
Manipulator Purpose Input/Output
-----------------+----------------------------------------+---------------
boolalpha Turns on boolapha flag. Input/Output
dec Turns on dec flag. Input/Output
endl Output a newline character and Output
flush the stream.
ends Output a null. Output
fixed Turns on fixed flag. Output
flush Flush a stream. Output
hex Turns on hex flag. Input/Output
internal Turns on internal flag. Output
left Turns on left flag. Output
nobooalpha Turns off boolalpha flag. Input/Output
noshowbase Turns off showbase flag. Output
noshowpoint Turns off showpoint flag. Output
noshowpos Turns off showpos flag. Output
noskipws Turns off skipws flag. Input
nounitbuf Turns off unitbuf flag. Output
nouppercase Turns off uppercase flag. Output
oct Turns on oct flag. Input/Output
resetiosflags Turn off the flags specified in f. Input/Output
(fmtflags f)
right Turns on right flag. Output
scientific Turns on scientific flag. Output
setbase(int base) Set the number base to base. Input/Output
setfill(int ch) Set the fill character to ch. Output
setiosflags Turn on the flags specified in f. Input/output
(fmtflags f)
setprecision Set the number of digits of precision. Output
(int p)
setw(int w) Set the field width to w. Output
showbase Turns on showbase flag. Output
showpoint Turns on showpoint flag. Output
showpos Turns on showpos flag. Output
skipws Turns on skipws flag. Input
unitbuf Turns on unitbuf flag. Output
uppercase Turns on uppercase flag. Output
ws Skip leading white space. Input
*/
|
|
|
Related examples in the same category |
|