CS202
2- ‹#›
Dynamic Memory w/ Classes
n
What changes in this case are the data
members:
ä
class list {
ä
public:
ä
list();
ä
int add (const video &);
ä
int remove (char title[]);
ä
int display_all();
ä
private:
ä
video *my_list;
ä
int video_list_size;
ä
int num_of_videos;
ä
};
n
Replace the array
with these