For my latest CS homework, I need to create a category called Movie called Title, Director, Year, Rating, Actor Keeps etc.
Then, I need to read this file which has a list of this information and it is stored in a vector of movers' signals.
I'm not sure what the last line means. Does it mean, I read the file, create several movie objects, then make a vector of points, where each element points to one of those movie objects?
Do I just make two vectors - one pointers and one in the movies and one for each mapping of two vectors
It means something like this:
Std :: vector & lt; Movie * & gt; Movies;
Then you add a vector like you read the line:
movies. Push_back (new movie (...));
Once done with vector, remember to remove all movie *
objects.
Comments
Post a Comment