Sorting integers help

Another question of the day. A problem where it ask users to input 3 integer and sort it in ascending orders. How do you do this? in its simplest form.

Do you know how to ask user to input 3 integers?
Do you know how to sort an existing array?

You can just breakdown the problem, and solve them one by one.
Last edited on
The easiest way to sort is to use std::sort.

http://www.cplusplus.com/reference/algorithm/sort/
Last edited on
Topic archived. No new replies allowed.