 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
For
the list of videos data type we used
|
|
|
class
list { <--- the data type!!!
|
|
|
|
public:
|
|
|
|
list(); <--- the constructor
|
|
|
|
int add (const video
&); 3 member functions
|
|
|
|
int remove (char title[]);
|
|
|
|
int display_all();
|
|
|
|
private:
|
|
|
|
video my_list[CONST_SIZE]; data members
|
|
|
|
int num_of_videos;
|
|
|
|
};
<--- notice like structures we need a semicolon
|
|