C.选择排序:procedure sort;va
14 查阅
参考答案:
begin
\r\n
for i:=1 to n-1 do
for j:=i+1 to n do
if a[i]>a[j] then swap(a[i],a[j]);
end;
参考答案:
begin
\r\n
for i:=1 to n-1 do
for j:=i+1 to n do
if a[i]>a[j] then swap(a[i],a[j]);
end;