void SelectSort(SqList L){
int i, j, k, temp;
for(i=1; i<L.Length; i++){
k = i;
for(j=i+1; j<=L.Length; j++)
if(L.elem[j] < L.elem[k])
k = j;
if(k != i){
temp = L.elem[i];
L.elem[i] = L.elem[k];
L.elem[k] = temp;
}
}
}
07-15
528
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)
12-30