Question: I need help running this code: #inlcude #include using namespace std; struct EZTechMovie { string name; string *cast; string rating; }; int main() { struct

I need help running this code:

#inlcude #include using namespace std;

struct EZTechMovie { string name; string *cast; string rating; };

int main() { struct EZTechMovie movie; movie.cast = new string; string selection; cout << "Would you like to add a new movie? "; cin >> selection; while(selection == "Yes" || selection == "yes" || selection == "Y" || selection "y"){ cout << "Movie Name: "; getline(cin, movie.name); getline(cin, movie.name); cout<< "Cast: "; getline(cin, movie.cast[0]); cout<< "Rating: "; getline(cin, movie.rating); cout << "**********" <> selection; } }

My program will not run it. I have used studio and codelite and nothing is giving me the output. Can someone help me see if it works or what I need to change to get it to run in codelite?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!