void Msort(int arr[],int n)
{
for(int i=n-1;i;i--)
for(int j=0;j<i;j++)
if(arr[j]<arr[j+1])
{
int temp=arr[j];
arr[j]=arr[j+1];
arr[j+1]=temp;
}
}
冒泡排序(C++实现)
猜你喜欢
转载自blog.csdn.net/weixin_46165788/article/details/105532421
今日推荐
周排行