|
| |||||||||||||||||||||||||||||||||
| CanOfWater (1) | |||
|
Hey guys, I am new to this forum and I really need some help. I have looked at the information on sorting and I just can't get it. What I need to do, is to make the numbers the user inputs into the array printed from the greatest one to the least (descending order). I think this can be done with either loops or sorting but I don't get it at all. If anyone can help, I will appreciate it. Here is my code so far in C++
| |||
|
Last edited on
|
|||
| int main (93) | |
|
If you would have entered "sorting" into the text-box that has the word "search" attached to its left side, the sixth entry you would have gotten after pressing the commandbutton called "search" might have helped you quite a bit. I, and I guess I am not alone with this attitude, do not like to post the same code-example every other day. So, please, try the search-function first. int main | |
|
|
|
| dwk (15) | |
|
Or, my all time favorite, check http://en.wikipedia.org/wiki/Quicksort | |
|
|
|