Solved

Order - descending

Posted on 2003-11-16
4
499 Views
Last Modified: 2010-04-01
How do I sort in descending Order(not the sort comand)?
0
Comment
Question by:vmj36
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Gratch06
ID: 9760391
More details please.  What are you sorting?  ints, strings?  There are a variety of different sorting methods, some better for small amounts of data, others for large amounts of data.  More info is definitely required before someone can answer your question.
0
 

Author Comment

by:vmj36
ID: 9760431
Im trying to sort integer arrays
0
 
LVL 1

Accepted Solution

by:
Gratch06 earned 50 total points
ID: 9760464
http://www.developerfusion.com/show/3653/9/   <--- Bubble sort, Selection Sort (Merge sort and tag sort are probably not what you want)
http://mathbits.com/MathBits/CompSci/Arrays/Shell.htm  <--- shell sort algorithm

See if either of those give you enough base to get started, and feel free to come back with further questions.
0
 

Author Comment

by:vmj36
ID: 9760513
Thanks :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question