fill

Syntax:

    char ostream::fill();
    char ostream::fill( char ch );

The function fill() either returns the current fill character, or sets the current fill character to ch. The fill character is defined as the character that is used for padding when a number is smaller than the specified width(). The default fill character is the space character.

Related Topics: precision, width