Need help leading in the right direction

Hi, I'm doing beginner exercises
http://www.cplusplus.com/forum/articles/12974/
I'm currently doing Pancake Glutton
Requires:
variables, data types, and numerical operators
basic input/output
logic (if statements, switch statements)
loops (for, while, do-while)
arrays

Write a program that asks the user to enter the number of pancakes eaten for breakfast by 10 different people (Person 1, Person 2, ..., Person 10)
Once the data has been entered the program must analyze the data and output which person ate the most pancakes for breakfast.

★ Modify the program so that it also outputs which person ate the least number of pancakes for breakfast.

★★★★ Modify the program so that it outputs a list in order of number of pancakes eaten of all 10 people.
i.e.
Person 4: ate 10 pancakes
Person 3: ate 7 pancakes
Person 8: ate 4 pancakes
...
Person 5: ate 0 pancakes


and so far i created an array of 10 people and an event for the user to imput a number per person, but now I'm stuck, I can manually compare them with if statements... but that's horrible and confusing, does anyone mind leading me in the right direction?
this has a selection sort example you could use for your pancake sort. its VERY similar to what you need.

http://www.learncpp.com/cpp-tutorial/64-sorting-an-array-using-selection-sort/
Topic archived. No new replies allowed.