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
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 << "**********" <
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
Get step-by-step solutions from verified subject matter experts
