选择排序模版

来源:互联网 发布:php工作 编辑:程序博客网 时间:2024/05/05 23:03
for i:=1 to n-1 dofor j:=i+1 to n doif big(a[j],a[i]) then swap(a[i],a[j]);