Super-string Theory

The strings we've been using in this book have been satisfactory for the uses we've made of them so far, but at this point we need some more functionality. Figure 12.1 shows the interface of the new string class that implements the new functions we'll need to finish our home inventory project.[1]

[1] This is an improved version of the string class we covered in Chapters 7 and 8. You might want to review that discussion before proceeding with these improvements.

Figure 12.1. The new string class interface (code\string7.h)

Batteries Not #included

The first change in this header file from the previous version, string6.h, doesn't ...

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.