Write a program that uses a structure named MovieData to store the following information about a movie:
- Title
- Director
- Year Released
- Runnung Time (in minutes)
Your program should create two MovieData variables, store values in their members, and pass each one, in turn to a function that displays the information about the movie in a clearly formatted manner.
1
Expert's answer
2016-04-06T12:30:04-0400
#include <iostream> #include <string>
using namespace std;
struct MovieData { string Title; string Director; unsigned short YearReleased; unsigned short RunningTime; };
Comments
Leave a comment