August 2002
Beginner
1122 pages
22h 1m
English
Let's add some 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.22 shows the new application program that uses this feature.
#include <iostream> #include <fstream> #include <string> #include "Vec.h" #include "xstring.h" #include "hmit6.h" #include "hmin6.h" using namespace std; int main() { ifstream HomeInfo("home3.in"); HomeInventory MyInventory; HomeItem TempItem; xstring Name; xstring Description; MyInventory.LoadInventory(HomeInfo); TempItem ... |
Read now
Unlock full access