I have mostly the entire program done but I am having a couple issues. I need to get titles of five movies from the user and store them in the proper member variable for each instance of the five movies at the end of the program. This is what I have so far. I also need to add / between the re-order date and some spaces between the first two parts.
#include <iostream>
using namespace std;
//Structure for each video information
struct Video
{
string movieTitle;
int numberCopies;
string videoType;
};
struct re_order_Date
{
int month;
int day;
int year;
};
void get_Video(Video shows[], int number_of_shows);
int main()
{
Video videoInfo;
videoInfo.movieTitle = "Fight Club";
videoInfo.numberCopies = 15;
videoInfo.videoType = "Mystery";
cout<<"The Title of the movie is: "<<videoInfo.movieTitle<<endl;
cout<<"The number of copies are: "<<videoInfo.numberCopies<<endl;
cout<<"The type of video is: "<<videoInfo.videoType<<endl;
Video videoinfo2;
re_order_Date reOrderDate;
videoinfo2.movieTitle = "Requiem for a dream";
videoinfo2.numberCopies = 10;
videoinfo2.videoType = "Drama";
reOrderDate.month = 05;
reOrderDate.day = 17;
reOrderDate.year = 2011;
cout<<"The Title of the movie is: "<<videoinfo2.movieTitle<<endl;
cout<<"The number of copies are: "<<videoinfo2.numberCopies<<endl;
cout<<"The type of video is: "<<videoinfo2.videoType<<endl;
cout<<"The re-order date of the movie is: "<<reOrderDate.month <<reOrderDate.day <<reOrderDate.year <<endl;
Video allVideos[5];
void getVideo (Video shows[],int number_of_shows);
{
}