void main() { int a[],j,j,x; cout<<"input numbers of the array"<<endl; for(i=0;i<N;++i) cin>>a[i]; cout<<"please check the input numbers"<<eddl; for(i=0;i<N;++i) cout<<a<<endl; //the double loop as fllows for(j=1;j<N;j++) for(i=N-2;i>=0;i--) if (a[i]>a[i+1])//sort {x=a[i]; a[i]=a[i+1];a[i+1]=x;} //now out put for(i=0;i<N;++j) cout<<a[i]; cout<<endl; }
buguo wo juede zuihao haishi yong zhizhen lai gei shuzu paixu ,qingzhijiao.wo ye bu shi hen dong