Home, Sweet Home
Now that we have finished discussing our new, improved string class, let's get back to using it to add capabilities to our home inventory project. First on the list is the ability to find an item by searching for a sequence of chars in its description. Before we see how this is implemented, let's take a look at how it is used. Figure 12.12 shows the new application the new application program that uses this feature.
Figure 12.12. The latest home inventory application program
This program starts out just as the previous one did, by loading the inventory from the home3.in input file, looking up the entry whose name is "Relish", ...
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.