Fruit Processing: Container Adapters, Multimaps, STL Algorithms
Lab Assignment
The project contains four parts:
- Lemons (container adapters) Recode lemon picking example to use the
priority queue container adapter instead of a hand-written loop.
- Oranges (multimaps, emplace) Recode orange selection example such that it uses a multimap instead of vector to store fruit as well as upper_bound(), lower_bound() functions and emplace() to populate the multimap.
- Apples (algorithms I) Recode apple sorting
examples such that they use suggested STL algorithms instead of hand-written loops.
- Peaches (algorithms II) Recode peach
jamming example to use suggested STL algorithms instead of
hand-written loops.
Milestone: Implement the first assignment.
Hint: Refer to this example for priority queue usage.