#include <iostream>
struct Movie
{
std::string Title;
std::string Genre;
int Year;
};
int main()
{
Movie movie1;
Movie movie2;
Movie movie3;
movie1.Title = "The Dark Knight";
movie1.Genre = "Action";
movie1.Year = 2008;
movie2.Title = "The Lord of the Rings: The Return of the King";
movie2.Genre = "Fantasy";
movie2.Year = 2003;
movie3.Title = "Forrest Gump";
movie3.Genre = "Drama";
movie3.Year = 1994;
std::cout << "Movie 1: " << movie1.Title << std::endl;
std::cout << "Movie 2: " << movie2.Title << std::endl;
std::cout << "Movie 3: " << movie3.Title << std::endl;
return 0;
}
Comments
Leave a comment