fill [C++ Reference]
Keywords: io,fill
Date: 2009-03-09T12:15:37-0700

[[fill]]
C++ Reference
Translations of this page?:

- en
- br-pt
- cn
- cz
- de
- es
- fr
- it
- jp
- nl
- pl
- ro
- ru
- sk
- tr
- tw

## 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

Edit this page • Old revisions
• • • Login • Index • Recent changes • RSS • cc •