home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH11 / A112212.TXT < prev    next >
Encoding:
Text File  |  1993-08-09  |  580 b   |  10 lines

  1. The width in the format state specifies the minimum size of a
  2. field.  A value can still take up more characters than the width,
  3. but if it takes fewer characters than the width, the characters
  4. are padded with the fill character.  This example shows you how to
  5. set the width in the format state and the effect the width of
  6. fields has on input and output.  Note that if you set the field
  7. width, it only affects the next input or output operation.  If you
  8. want to set the field width for a series of input or output
  9. operations, you must reset the width after each operation.
  10.