|
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. |
| |