Question: C++ please The program starts by inputting the names of the two input files (movies first). Two sample input files are provided on the course



C++ please
The program starts by inputting the names of the two input files (movies first). Two sample input files are provided on the course web page for testing purposes. Open "Projects", then "project09-inputfiles": "movies.txt reviews.txt" When downloading, it's best to click the "Download" button in the upper-right corner. The format of the movies file is simply one movie per line; assume the file contains at least 1 movie, and at most 500 movies. Example: Pulp Fiction (1994) The Shawshank Redemption (1994) The Godfather (1972) The first movie in the file is considered movie #1, the second movie in the file is considered movie #2, and so on. Since the movie names contain spaces, recall from lab that we must use the C++ getline() function to return the entire line: string moviename; getline (file, moviename); Do not use getline in other situations-continue to input integers, doubles, and words as before with the >> operator. Only use getline() when you need to input the entire line as a single string. Also recall from lab that the input file does not end in a special marker such as-1 or #, so you'll need to use the EOF marker to determine when to stop. Here's the proper input pattern: getline(file, moviename); while (!file.eof)) getline(file, moviename)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
