C++ Manipulators

Manipulators are special functions that can be included in the I/O statements to alter the format parameters of a stream.

setw()It is used to specify the required field size for displaying an output value.
setprecision()It is used to specify the number of digits to be displayed after the decimal point of a float value.
setfill()It is used to specify a character that is used to fill the unused portion of a field.
setiosflags()It is used to specify format flags that can control the form of the output display.
resetiosflags()It is used to clear the flags specified.