Description
This program uses a bag in which it stores integers. Then the program iterates over the bag in two different ways:
Concept
This program is a sample to demonstrate the use of an iterator object and an iterator function.
Task
This program iterates over a collection in different ways.
How To Run the Project from within the IDE
If, for example you want to store and add the integers 1, 3, 4, 7, you invoke the program with the following command:
sumup 1 3 4 7