Objectives of This Chapter

By the end of this chapter, you should

  1. Understand how to implement all the concrete data type functions for a class that uses pointers, namely the string class.

  2. Understand in detail the operation and structure of a string class that is useful in some real programming situations.

  3. Understand how to write appropriate input and output functions (operator >> and operator <<) for the objects of our string class.

  4. Understand how to use some additional C library functions such as memcmp and memset.

  5. Understand the (dreaded) C data type, the array, and some of the reasons why it is hazardous to use.

  6. Understand the friend declaration, which allows access to private members by selected nonmember functions.

For Reference Only

Now ...

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.