Solved

Order - descending

Posted on 2003-11-16
4
497 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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Unlike C#, C++ doesn't have native support for sealing classes (so they cannot be sub-classed). At the cost of a virtual base class pointer it is possible to implement a pseudo sealing mechanism The trick is to virtually inherit from a base class…
Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

816 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now