Professional Documents
Culture Documents
Iomanip
Iomanip
#include <iomanip.h>
Parameter
lFlags
Format flag bit values. See the flags member function for a list of format flags. To
combine these flags, use the OR ( | ) operator.
Remarks
This parameterized manipulator sets only the specified format flags. This setting
remains in effect until the next change.
ios::flags
long flags( long lFlags );
Return Value
The first overloaded flags function sets the stream’s internal flags variable to lFlags
and returns the previous value.
Parameter
lFlags
The new format flag values for the stream. The values are specified by the following
bit masks (ios enumerators) that can be combined using the bitwise OR ( | )
operator. The lFlags parameter must have one of the following values:
• ios::left Left-align values; pad on the right with the fill character.
• ios::right Right-align values; pad on the left with the fill character (default
alignment).
• ios::internal Add fill characters after any leading sign or base indication,
but before the value.
1
• ios::dec Format numeric values as base 10 (decimal) (default radix).