会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
住进布达拉宫,我是雪域最大的王
博客园
首页
新随笔
联系
订阅
管理
2019年9月1日
各种排序总结
摘要: 代码中所有数组都是 1~n。 1、冒(起)泡排序 1 void sort1( int a[],int n) 2 { 3 for(int i=1; i<=n-1; i++) 4 for(int j=1; j<=n-i; j++) 5 if(a[j+1]<a[j]) 6 swap(a[j],a[j+1]
阅读全文
posted @ 2019-09-01 17:15 hbhdhd
阅读(180)
评论(0)
推荐(0)
编辑
公告