[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These methods control (or report on) settings for some details of controlling streams, primarily to do with formatting output:
setfill
. See section Changing stream properties in expressions.
Default: blank.
Default: 6
.
You can also use the manipulator setprecision
for this purpose.
See section Changing stream properties using manipulators.
Default: 0
, which means to use as many characters as necessary.
This value resets to zero (the default) every time you use `<<'; it is
essentially an additional implicit argument to that operator. You can
also use the manipulator setw
for this purpose.
See section Changing stream properties using manipulators.
ios::dec
ios::oct
ios::hex
setbase
, or any of the manipulators dec
, oct
, or
hex
; see section Changing stream properties in expressions.)
On input, if none of these flags is set, read numeric constants according to the prefix: decimal if no prefix (or a `.' suffix), octal if a `0' prefix is present, hexadecimal if a `0x' prefix is present.
Default: dec
.
ios::fixed
ios::precision
to set precision.
ios::left
ios::right
ios::internal
ios::scientific
ios::showbase
ios::showpoint
ios::showpos
ios::skipws
ios::stdio
stdio
streams stdout
and stderr
after
each output operation (for programs that mix C and C++ output conventions).
ios::unitbuf
ios::uppercase
Use ios::setf
or ios::unsetf
to change one property at a
time.
ios::unsetf
to cancel.)
ios::unsetf
for another way of clearing flags.)
ios::setf
. Returns the old values of those flags.
[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |