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

  1. You can specify the width of a field using the width() function.
  2. In this example, the call to width() specifies that the next value
  3. that is inserted into cout should be at least 30 characters long.
  4. If it is more than 30 characters it will not be truncated, but if
  5. it is less than 30 characters it will be padded with the fill
  6. character.
  7.