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

  1.  // EXAMPLE OUTPUT-61
  2.  
  3.  // HOW TO DO INTERNAL JUSTIFICATION
  4.  
  5.  #include <header.h>
  6.  
  7.  int main()
  8.  {
  9.     cout.setf(ios::showbase) ;
  10.     cout.fill('=') ;
  11.     cout.setf(ios::internal , ios::adjustfield) ;
  12.     cout.width(10) ;
  13.     cout.setf(ios::hex , ios::basefield) ;
  14.     cout << 65 << '\n' ;
  15.     cout.setf(ios::left , ios::adjustfield) ;
  16.     cout.width(10) ;
  17.     cout << 65 << '\n' ;
  18.  
  19.     return 0 ;
  20.  }
  21.