ps: Include the iomanip header file at the beginning of the source program
Commonly used I/O stream library manipulators
-------------------------------------------------------
dec | Decimal representation of numeric data
hex | Numerical data hexadecimal representation
oct | numeric data octal representation
ws | extract whitespace
endl | Insert a newline and flush the stream
ends | Insert a null character
setsprecision(int) | Sets the number of decimal places for floating point numbers
| include decimal point
setw(int) | set field width
-------------------------------------------------------
For example:
----------C++ language study notes----------