August 2002
Beginner
1122 pages
22h 1m
English
The StockItem class is designed to keep track of an individual item in the inventory, but we also need a way to keep track of all the StockItems in the store. So let's take a look at the next version of the class that serves that purpose in the inventory control application, Inventory. Figure 9.3 shows the header file for this version of the Inventory class, which is essentially identical to the last one from Chapter 6, except that we have added a ReorderItems function to allow us to generate a reorder report for all of the items in stock.
class Inventory { public: Inventory(); short LoadInventory(std::istream& is); void StoreInventory(std::ostream& os); ... |
Read now
Unlock full access