home *** CD-ROM | disk | FTP | other *** search
/ Shareware Supreme Volume 6 #1 / swsii.zip / swsii / 099 / IOSTREAM.ZIP / EX_O51.CPP < prev    next >
C/C++ Source or Header  |  1993-01-07  |  431b  |  25 lines

  1.  // EXAMPLE OUTPUT-51
  2.  
  3.  // HOW TO SET THE FILL CHARACTER
  4.  
  5.  #include <header.h>
  6.  
  7.  int main()
  8.  {
  9.     const char quote = '\'' ;
  10.     char old_fill = cout.fill('*') ;
  11.     cout << "Old fill character is "
  12.          << quote
  13.          << old_fill
  14.          << quote
  15.          << '\n' ;
  16.  
  17.     cout << "It was changed to "
  18.          << quote
  19.          << cout.fill()
  20.          << quote
  21.          << '\n' ;
  22.  
  23.     return 0 ;
  24.  }
  25.