#includeusing namespace std;#define n 10void sort(int a[]);int main(){int a[n];int i;for(i=0;i <<"请输入a["< <<"]"<<"的值"< >a[i];}sort(a);for(i=0;i < <<" ";cout< a[j+1]){min=a[j];a[j]=a[j+1];a[j+1]=min;}}}}/*暴力排序for(i=0;i a[j]){min=a[j];a[j]=a[i];a[i]=min;}*/