The Occurrences Function
Counts how many copies of a number occur
size_t Bag::occurrences(int target) const
// Postcondition: The return value is the number
// of copies of target in the Bag.
{
. . .
}
Previous slide
Next slide
Back to first slide
View graphic version