C++ Serendipity Booksellers Software Development Project— Part 12: C++ File Operations

Share it with your friends Like

Thanks! Share it with your friends!

Close

For this chapter’s assignment you are going to modify the program so it works with an inventory file instead of an array of structures. You will still keep the BookData structure declarations you created in Chapter 11. However, it will now be used to define the records in the file

Include the appropriate header file and decide where you want to define the file stream object for the inventory file. One approach is to define a global file stream object. Another approach is to define the object only in the functions that need to open the file, and then pass references to it to functions that need to work with the file.

DOWNLOAD FILES: Serendipity12

Comments

Write a comment

*