n c++, Using STL containers, components, and algorithms show all data from the text file movies.txt. Please make sure the list updates once the user adds a new movie to the text file. Console
In c++, Using STL containers, components, and
Console
Movies program
COMMAND MENU
show - user is able to see all available movies from movies.txt
command: show
The Adventures of a Babysitter $10
Barney $25
Larry the Car Man $15
Dora and the missing map $15
Ceasar and the Lunch Lady $10
Suzie and the Bad Kids $13.95
command: add
cout << "What movie do you want to add?";
cin >> BeeHive $12;
cout << "Movie added";
command:show
The Adventures of a Babysitter $10
Barney $25
Larry the Car Man $15
Dora and the missing map $15
Ceasar and the Lunch Lady $10
Suzie and the Bad Kids $13.95
Beehive $12
movies.txt with all possible movies:
The Adventures of a Babysitter $10
Barney $25
Larry the Car Man $15
Dora and the missing map $15
Ceasar and the Lunch Lady $10
Suzie and the Bad Kids $13.95
Step by step
Solved in 2 steps