Question: Given the following structure declaration and a skeleton main function: struct Movie { string title; string producer; string mainActor; int year; }; int main()
Given the following structure declaration and a skeleton main function: struct Movie { string title; string producer; string mainActor; int year; }; int main() { // declare structure variable here // write cout statement to display values in structure variables here. }; return 0; In main() function, write a statement that declares a variable named good Movie using the Movie structure assigning the values "Black Panther", "Ryan Coogler", "Chadwick Boseman", 2018. Write a cout statement that displays these values from the good Movie variable.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
