Objectives of This Chapter

By the end of this chapter, you should

  1. Understand how variables of a 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 C strings work and how we can use them in our string class implementation.

  4. Understand how C string literals can be used to initialize variables of a string class.

Get C++: A Dialog Programming with the C++ Standard Library 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.