My intent was to convert the string variable for the year to an integer data type. The code compiles but now cannot run on my system. I'm not sure what's going as to what the program is displaying.
Objective:
rompt the user for two years. Print all Comedy movies that were released between those two years.
1) Your size is always 170000
2) You are not using size in void load_movie_database
3) Invoid year_check the loop is going to run for 170000 times even if "movie_database.txt" has less than those many entries
4)if (temp >= year1 || temp <= year2) is logically incorrect if you want to print the movies between these years. Currently it will print even if the year is not less than ending year. Use and instead of or