Using the Bag in a Program
Here is typical code from a program that uses the new Bag class:
Bag ages;
// Record the ages of three children:
ages.insert(4);
ages.insert(8);
ages.insert(4);
Previous slide
Next slide
Back to first slide
View graphic version