/**
*冒泡排序
*@paramsrc待排序数组
*/
void doBubbleSort(int[] src)
{
int len=src.length;
for(int i=0;i<len;i++)
{
for(int j=i+1;j<len;j++)
{
int temp;
if(src[i]>src[j])
{
temp=src[j];
src[j]=src[i];
src[i]=temp;
}
}
printResult(i,src);
}
}
最近下载更多
最近浏览更多
2196316269 LV10
2021年2月25日
一个西瓜分两半
2020年5月28日
暂无贡献等级
cclovecoding
2020年4月29日
暂无贡献等级
lllpppwww LV5
2020年4月4日
solala LV1
2020年1月7日
数据库1 LV12
2019年10月28日
seanc326 LV2
2019年8月19日
Rainnzm LV1
2019年6月1日
2602275348 LV12
2019年4月26日
qq1654486219 LV6
2019年2月20日

