Objectives of This Chapter

By the end of this chapter we will have

  1. Improved the string class to make it easy to search for a partially matching string;

  2. Learned how to use include guards to prevent a class interface from accidentally being defined more than once;

  3. Learned about default arguments, which allow us to write one function that can take a varying number of arguments;

  4. Learned about the explicit keyword, which gives us more control over how constructors will be used;

  5. Defined a concatenation operator that "adds" one string to the end of another one;

  6. Written a version of operator >> that can read a string of any length from the keyboard or a file;

  7. Learned something about the hazards of the "magic" value 0;

  8. Discovered just how difficult it is to ...

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.