Gillius's Programming

Appendix C -- ios flags

These flagss are used in the stream with the setiosflags function. For example:
cout << setiosflags(ios::showpoint);
will make numbers always display with a decimal point

Flag Meaning
skipws Ignore whitespace in input (default)
left left align output
right right align output
internal add spaces between sign and number
dec convert to decimal
oct convert to octal
hex convert to hexadecimal
showbase use base indicator on output (0 for octal, 0x for hex)
showpoint always show decimal point
uppercase hex output letters uppercase
showpos always show positive sign
scientific use exponential format (1.234E5)
fixed fixed format on floating-point output
unitbuf flush streams after insertion
stdio flush stdout and stderror after insertion