sorting arrays

>how to make this one
>i tried it many times but i always failed
-------
*int list[10]
*the user will input 10 integer values for list
*then the output should look like this:
List: 1 2 3 5 7 9 4 6 10 8
Sorted list:1 2 3 4 5 6 7 8 9 10
-------
thanks for any help!
Hi. If you post your attempt we can help guide you on how to improve and fix it. People here generaly don't give complete solutions to problems as it is not the way to help others learn.
PS: Use the tags [code][/code] around your code to make it format nicely
EG
1
2
3
4
int main()
{
   return 0;
}

There is also another nice reference on this website for qsort (Defined in cstdlib for sorting arrays)

http://www.cplusplus.com/reference/clibrary/cstdlib/qsort.html

Good luck!
Last edited on
wooo, thnks a lot guys! (^,^)
Topic archived. No new replies allowed.