Need Make Existing Code Simply Take Input File User Currently Post Code Assignment Inclu Q37288012

I need to make my existing code simply take input from a file,not a user (as it currently is doing). I will post the code andassignment below.

#include “stdafx.h”
#include<iostream>
#include<vector>
#include<string>
#include<stdio.h>
#include<stdlib.h>
using namespace std;

//DVD class defined
class DVD
{
   //Data member
   string movieTitle, nameActorsActresses[10],actor_actress[2];
   int lengthOfMovie, movieReleasedYear;
public:
   //Accept the DVD information
   void accept()
   {
       cout << “n Enter the MovieTitle: “;
       cin >> movieTitle;
       //Clears the buffer
       fflush(stdin);
       cout << “n Enter Length ofMovie: “;
       cin >> lengthOfMovie;
       fflush(stdin);
       cout << “n Enter ReleasedYear: “;
       cin >>movieReleasedYear;
       fflush(stdin);
      
       //Accepts each actor / actress nameand

OR
OR

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.