Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Order - descending

Posted on 2003-11-16
4
Medium Priority
?
519 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 200 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

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Introduction This article is a continuation of the C/C++ Visual Studio Express debugger series. Part 1 provided a quick start guide in using the debugger. Part 2 focused on additional topics in breakpoints. As your assignments become a little more …
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.
Suggested Courses

772 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