Objectives of This Chapter
By the end of this chapter we will have
Improved the string class to make it easy to search for a partially matching string;
Learned how to use include guards to prevent a class interface from accidentally being defined more than once;
Learned about default arguments, which allow us to write one function that can take a varying number of arguments;
Learned about the explicit keyword, which gives us more control over how constructors will be used;
Defined a concatenation operator that "adds" one string to the end of another one;
Written a version of operator >> that can read a string of any length from the keyboard or a file;
Learned something about the hazards of the "magic" value 0;
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.