C++ Standard Library Quick Reference by Peter Weert & Marc Gregoire

C++ Standard Library Quick Reference by Peter Weert & Marc Gregoire

Author:Peter Weert & Marc Gregoire
Language: eng
Format: epub
Publisher: Apress, Berkeley, CA


It is also possible to modify flags by streaming I/O manipulators, discussed in the next section.Table 5-1. std::ios_base::fmtflags Formatting Flags Defined in <ios>

Flag

Description

boolalpha

Use true and false instead of 1 and 0 for Boolean I/O.

left,

right,internal

Output is left aligned with fill characters added to the right, or right aligned with padding on the left, or adjusted by padding in the middle. The third flag, internal, works for numerical and monetary values, with the designated padding point being between the value and any of its prefixes: a sign, numerical base, and/or currency symbol. Otherwise, internal is equivalent to right. The results of the different alignment options are shown in the example section.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.