
void bubble_sort(SqList L){
int i,j;
KeyType temp;
for(i=1;i<L.Length;i++){
for(j=1;j<=L.Length-i;j++){
if(L.elem[j+1]<L.elem[j]){
temp=L.elem[j];
L.elem[j]=L.elem[j+1];
L.elem[j+1]=temp;
}
}
}
}

void bubble_sort(SqList L){
int i,j;
KeyType temp;
for(i=1;i<L.Length;i++){
for(j=1;j<=L.Length-i;j++){
if(L.elem[j+1]<L.elem[j]){
temp=L.elem[j];
L.elem[j]=L.elem[j+1];
L.elem[j+1]=temp;
}
}
}
}
1748
1787

被折叠的 条评论
为什么被折叠?
