sorting arrays

Sep 1, 2008 at 9:39am
>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!
Sep 1, 2008 at 10:46am
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;
}

Sep 1, 2008 at 3:16pm
Sep 1, 2008 at 5:24pm
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 Sep 1, 2008 at 5:34pm
Sep 2, 2008 at 12:33am
wooo, thnks a lot guys! (^,^)
Topic archived. No new replies allowed.