|
| If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
||||
|
(x > y) - (x < y)
Returns 1, 0 or -1 depending on which is greater, x or y. Very useful for rapid (or more accurately, less-slow) alphanumerical sorting functions.
__________________
And you, to whom adversity has dealt the final blow With smiling [faces] lyin' to ye' everywhere ye' go Turn to, and put out all your strength of arm and heart and brain And like the Mary Ellen Carter, rise again. |
|
|||
|
Sort of like the C function strcmp (x,y)
|
|
||||
|
Yup. That's exactly right, and that's pretty much what strcmp is for: the conditional in O(n*log(n)) alphanumeric sorting algorithms such as Merge Sort and Quick Sort.
__________________
And you, to whom adversity has dealt the final blow With smiling [faces] lyin' to ye' everywhere ye' go Turn to, and put out all your strength of arm and heart and brain And like the Mary Ellen Carter, rise again. |
|
||||
|
Mine is Boom=M*c^2
__________________
If I set the budget, we'd have Ares and more. Unfortunately, I don't set the budget, and Ares is just too expensive and too far out for us to accomplish our goals within the budget we were given. If we halt the ISS, all versions of Ares, and transport Orion and Altair aboard DIRECTv3's Jupiter family of Shuttle-Derived Launch Vehicles, we just might make it back to the Moon by 2020. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| The energy machine of Joseph Newman | banquo's_bumble_puppy | Off-Topic Babbling | 243 | 09-July-2009 09:29 PM |
| A Flaw of General Relativity, a Fix, etc. | Zanket | Against the Mainstream | 580 | 10-December-2005 08:03 PM |
| Allais effect casts doubt on GR? | gzhpcu | Against the Mainstream | 71 | 08-February-2005 06:51 PM |
| Error in calculating the Equation of Time | oriel36 | Astronomy | 35 | 31-August-2003 06:37 AM |