Menu
1. Display movies sorted by title
2. Display movies sorted by rating
3. Lookup title and actors by id
4. Lookup id by title and either actor
5. Quit the program
Enter your choice: 1
A201 Avengers: Endgame Scarlett Johansson Chris Evans 2019 8.6
Despicable Me 3 Steve Carell Kristen Wiig 2017 6.1
Neighbors Zac Efron Rose Byrne 2014 6.3 0 0
0 0
My question is, why doesn't the movie ID's print for lines 2,3,4
and why does the fourth line output zeros rather than a movie description
from the text file? I've been stuck on it since yesterday and any input is greatly appreciated.