How would I use C++ to arrange a set of 5 inputted values in ascending order and then cout the order? So far I have an idea of using an array, order, and then assigning the lowest number to order, second lowest number to order, etc. Then I would cout order, order, etc. I am having trouble on using C++ to find the second lowest number, the middle value, and the second highest number. Any help would be grateful.
Is there a faster way to do this besides with arrays?