The iomanip file is required
Contents of the file named
iomanip
are required in order to use the following manipulators:
- setprecision: Sets the
number of digits to be printed to the right of the decimal point.
- fixed: Use fixed point
notation for floating-point numbers (as opposed to scientific notation).
If no precision has already been specified, the use of this manipulator
will set the precision to 6 by default.
- showpoint: Causes the
decimal point to be printed even if the precision is set to zero and the
values printed are whole numbers.
- setw: Sets minimum field
(column) width on output. This sets the minimum size of the field. A
larger number will use more columns.
- endl: Writes a newline
('\n') and flushes the buffer.
These manipulators which are used in the two programs in this
lesson.
There are many other manipulators that you can learn about
here
and here if you are
interested in pursuing the topic further.