Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Zortech C++ 3.0r4 - <b>ios::fill</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
ios::fill

Usage

   #include <iostream.hpp>
   int ios::fill(char filler);
   int ios::fill() const;

Description

   The fill function is used to set or read the current filler character,
   that is the character used to pad output to any field width that may be

   specified. The filler character defaults to the space character.

Example 

   cout << "fill character is " << cout.fill() << endl;
   int i = 22, oldfill = cout.fill('*');
   cout.width(6);          // see below
   cout << i;              // output is    ****22
   cout.fill(oldfill);

Return Value

   The const version returns the current fill character. The non-const
   version returns the previous fill character.





Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson