Hey guys, I'm really struggling with this program.
I am to make a video store operational by holding customerType objects in a linked list. Each customerType object holds a vector of videos that they have rented.
I'm wondering if there is any simple way to output this information to a file, then read it into the program and store the data correctly. Ideally, I should be able to add and delete items from this list with precision.
For instance, if one customer has rented three movies, but another has 2 movies, how do I stop it from reading a customer's name as if it were a movie title.
Here is just one example of the things I've tried:
Ideally, you would have a relational database with three tables: 1. the customers, 2. the tapes, and 3. the loans. One record in loans refers to one customer and one tape. Libraries implement database code already, say the sqlite. That would handle most of the file formatting issues too.