Course Web Pages
Related LinksFree eBooks
|
Iterators and AlgorithmsHero's Inventory 3.0, Part 1 Hero's Inventory 3.0, Part 2 High Scores ExercisesDownload max_score.cpp. This program takes a set of scores and finds the highest one. Modify the file as follows:
Bonus exerciseDo a web search to see if you can find an algorithm that locates the maximum element in a vector. Use this algorithm to write a shorter version of max_score.cpp. Name it max_score2.cpp. Note: this exercise is in addition to the previous exercises. It is not a replacement for either of them. |