Exercises

  1. Add the ability to edit an existing description field. Which classes will have to be changed to do this?

  2. Before writing over the old version of the data base at the conclusion of the program, copy that file to another name so that the user can go back to it if necessary.

  3. At present, the ExecuteMenuChoice function always saves the inventory in the backup file after calling AddItem. This is not necessary if the user didn't actually add a new item. Fix the code so that this unnecessary operation is avoided.

  4. Add the ability for the user to see only items of a given type, such as "Basic" or "Music", rather than having to see all types together in one list.

  5. Change the data entry function so that the user can correct an entry and continue entering ...

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.