Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >Application Programming


    

Blue Forest http://www.lslnet.com at 10:18 on June 6, 2006


Help!c++

Template "class Type>;
: : Array<Type>; void sort (int low, high int)
{
If (low>;=high) return;
Int lo=low;
Int hi=high+1;

Type elem=_ia[low]; //Type *_ia;

For (are;)
{
While (_ia[++lo]<elem, named lo<high);
While (_ia[--hi]>;elem, named hi>;low);
If (lo<hi)
Swap (lo, hi);
Else break;
}

Swap (low, hi);
Sort (low, hi-1);
Sort (hi+1, high);
}
Em14 : :
Elaborate on what

Help!c++

It is not a ranking.



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com