im using microsoft visual c++
and need to know how to sort user input numbers
into ascending order? (arround 10 different numbers)
Printable View
im using microsoft visual c++
and need to know how to sort user input numbers
into ascending order? (arround 10 different numbers)
fill an array with valid inputs....
now you need two loops. One nested in the other.
outer loop is number of passes which is arraysize.
inner loop is a single pass which should be arraysize-1
compare adjacent elements and swop if necessary...
come back with some of your own code and i will help more!