18.13. Wrap-Up
This chapter introduced the class
string from the C++ Standard Library, which
allows programs to treat strings as full-fledged objects. We discussed
assigning, concatenating, comparing, searching and swapping strings. We also
introduced a number of methods to determine string characteristics, to find,
replace and insert characters in a string, and to convert strings to C-style
strings and vice versa. You also learned about string iterators and performing
input from and output to strings in memory. In the next chapter, we introduce
structs, which are similar to classes, and
discuss the manipulation of bits, characters and C-style strings.