Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 : image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions