Adding the Ability to Edit a Record

Figure 11.29 is the latest, greatest version of the interface for the HomeItem class.

Figure 11.29. The latest version of the Homeitem class interface (code\hmit5.h)
 // hmit5.h class HomeItem { friend std::ostream& operator << (std::ostream& os, const HomeItem& Item); friend std::istream& operator >> (std::istream& is, HomeItem& Item); public: HomeItem(); HomeItem(const HomeItem& Item); HomeItem& operator = (const HomeItem& Item); virtual ~HomeItem(); // Basic: Art objects, furniture, jewelry, etc. HomeItem(std::string Name, double PurchasePrice, long PurchaseDate, std::string Description, std::string Category); // Music: CDs, LPs, cassettes, etc. HomeItem(std::string Name, double PurchasePrice, long PurchaseDate, ...

Get C++: A Dialog Programming with the C++ Standard Library now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.