Find the top 3 numbers in a list

I made a list of numbers that the user inputs, and then the program has to find what 3 are the largest, but im not sure how to find the top 3
How would you do it on paper if I gave you a list of numbers? Do it like that.
It is unsolvable task if the list contains less than three elements!:)
Sort the list and then take the last 3 numbers or figure out what math algorithm can be used to find them in the quickest amount of time.
The easiest way is sure the STL sort() function, but I guess you have to work with a simple array of integers and not the algorithm and vector libraries.
Let us know if you got any issues (after you actually try to write that program).
Topic archived. No new replies allowed.