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 our homegrown 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.

Why We Need a Reference ...

Get C++: A Dialog Programming with the C++ Standard Library now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.