![]() |
|
#1
|
|||
|
|||
Anyone know about bubble sorting?CPP / C++ / C Code:
Last edited by LuciWiz : 26-Jan-2009 at 17:44.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: Anyone know about bubble sorting?Quote:
Let me answer your question with another question. Given the following line quoted from your code: CPP / C++ / C Code:
For bonus points, creating two functions which perform the opposing swap (one for an ascending sort, & the other for a descending sort...) can be passed to a generalized version of your sorting routine meaning you only have to write Bubblesort once. |
|
#3
|
|||
|
|||
Re: Anyone know about bubble sorting?try this
CPP / C++ / C Code:
well modify the variables.. haha |
Recent GIDBlog
Accepted for Ph.D. program by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sorting a vector | acosgaya | C++ Forum | 2 | 10-Jan-2008 11:54 |
| array bubble sorting | killer9012 | C++ Forum | 35 | 18-Oct-2006 09:59 |
| Integer Sorting using Pointers. | nikhilthemacho | C Programming Language | 9 | 28-Jul-2006 13:19 |
| Bubble Sorts with 2d Arrays | y2l | C Programming Language | 5 | 14-Apr-2006 14:01 |
| Problem with sorting algorithm | MM4o | C++ Forum | 3 | 24-Feb-2006 10:40 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The