Question: Using C++ how can I make my code look like this? I already have the text file but I want it to look like this

Using C++ how can I make my code look like this? I already have the text file but I want it to look like this : Using C++ how can I make my code look like this? I

It doesnt have to add but it does have to get the price and display the title.

#include

#include

#include

using namespace std;

int main()

{

ofstream outfile;

outfile.open("Movies.txt");

outfile

outfile

outfile

outfile.close();

string movie1, movie2, movie3;

ifstream duckie;

duckie.open("movies.txt")

duckie >> movie1;

duckie >> movie2;

duckie >> movie3;

cout

cout

cout

duckie.close();

return 0;

}

Microsoft Visual Studio Debug... C ** My Movie Collection * Meg $ 17.80 * * Men-in-Black $ 19.99* * Saving_Private_Ryan * My_Girl * Independence_Day * I_Robot * Mrs._Doubtfire * Blues_Brothers * Enemy_Mine * Taken * Collection's value: $175.22 *

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!