August 2002
Beginner
1122 pages
22h 1m
English
That concludes our tour of the HomeUtility namespace. Now it's time to look at the changes to the next class, HomeInventory. We'll start with the latest version of the header file, hmin8.cpp, shown in Figure 13.19.
//hmin8.h class HomeInventory { public: HomeInventory(); short LoadInventory(std::ifstream& is); void DumpInventory(); HomeItem AddItem(); HomeItem EditItem(short Index); Vec<short> LocateItemByDescription(const xstring& Partial); Vec<short> LocateItemByCategory(const xstring& Partial); Vec<short> LocateItemByPartialName(const xstring& Partial); void PrintNames(std::ostream &os); void PrintAll(std::ostream &os); void StoreInventory(std::ofstream& ... |
Read now
Unlock full access