|
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
For
a client to create a list object:
|
|
|
|
int
main() {
|
|
|
|
list home_videos; //has an array of 100 videos
|
|
|
|
list kids_shows; //another 100 videos here...
|
|
|
|
•••
|
|
|
|
|
|
|
|
video out_of_site;
|
|
|
|
cin.get(out_of_site.title,100,’\n’);
|
|
|
|
cin.ignore(100,’\n’);
|
|
|
|
•••
|
|
|
|
home_videos.add(out_of_site); //use operation
|
|
|