An array sorting algorithm

xiaoxiao2021-03-05  22

Void INTARRAY :: Sort (int low, int high) {if (low> = high) return; int LO = low; int = high 1; int elem = _ia [low];

For (;;) {while (_ia [ lo] elem; if (lo

SWAP (Low, Hi); Sort (Low, Hi-1); Sort (Hi 1, HIGH);

转载请注明原文地址:https://www.9cbs.com/read-35068.html

New Post(0)