This is a rather interesting C++ example I read about while researching constructors and dimensions. Can someone assist with explaining how to code such an example.
Code program using structure named Movie Data to store the following information about a movie:
- Title
- Director
- Year Released
- Running time (in minutes)
- Include a constructor that allows all four of these member data values to be specified at the time a Movie Data variable is created.
- The program must have two Movie Data variables and pass each one to a function that displays the information about the movie in a clearly formatted manner.
- The MovieData variables must pass to the display function by value.