选择排序

void selectSort(int A[],int N)
{
    int i,j;
    for(i=0;i<N-1;i++)
    {
        for(j=i+1;j<N;j++)
        {
            if(A[i]>A[j])
            {
                int tmp=A[j];
                A[j]=A[i];
                A[i]=tmp;
            }
        }
    }
}
原文地址:https://www.cnblogs.com/angury/p/13022346.html