c选择排序算法
void selectsort(int *a,int len)
{
int i,j;
int temp;
for(i=0;i
for(j=i+1;j
if(a[i]>a[j])
{
temp=a[i];
a[i]=a[j];
a[j]=temp;
}
}
}