The manipulator setw() and the corresponding stream parameter are described in detail in Sec- tion 15.7.3, page 781.
The type string from the C++ standard library (see Chapter 13) grows as needed to accommo- date a lengthy string. Rather than using char*, this is much easier and less error prone. In addition, strings provide a convenient function getline() for line-by-line reading (see Section 13.2.10, page 677). So, whenever you can, avoid the use of C-strings and use strings.
Type void*
Operators > also provide the possibility of printing a pointer and reading it back in again. An address is printed in an implementation-dependent format if a parameter of type void* is passed to the output operator. For example, the following statement prints the contents of a C-string and its address: