May 2018
Intermediate to advanced
328 pages
8h 15m
English
The solution to this problem builds upon the previous one. You must solve that one before continuing here. Also, the function split() that is used in the code here is the same from problem 27, Splitting a string into tokens with a list of possible delimiters, from Chapter 3, Strings and Regular Expressions. For this reason, it will not be listed here again. In the source code for this book, you will find a database file called cppchallenger86.db that is prepared with several records for this problem.
The following function, read_movie(), reads information about a movie from the console (title, release year, length in minutes, directors, writers, and cast), creates a movie object, and returns it. ...
Read now
Unlock full access