Skip to content

Details

Junior Workshop:
Define classes for encapsulating sales for intervals of time and define operator overloads for less than , equal to, greater than for the computed profit.
Expected Duration: 20 minutes (self-study)

Freshman Workshop:
Introduce std::less<>() and std::greater<>() functors for ascending and descending sorts with std::sort(iterator, iterator, comparable).
Expected Duration: 5 minutes (self-study)

Related topics

Education
Science
C & C++
Computer Programming
Algorithms

You may also like