Objectives of This Chapter

By the end of this chapter, you should

  1. Understand how variables of the string class are created, destroyed, and assigned to one another.

  2. Understand how to assign memory to variables where the amount of memory needed is not known until the program is running.

  3. Understand how literal C strings can be used to initialize variables of the string class.

Get Learning to Program in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.