c语言折半插入、直接插入、起泡

上传人:第*** 文档编号:38741346 上传时间:2018-05-07 格式:DOC 页数:2 大小:31KB
返回 下载 相关 举报
c语言折半插入、直接插入、起泡_第1页
第1页 / 共2页
c语言折半插入、直接插入、起泡_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《c语言折半插入、直接插入、起泡》由会员分享,可在线阅读,更多相关《c语言折半插入、直接插入、起泡(2页珍藏版)》请在金锄头文库上搜索。

折半插入排序 #include #define N 8 void main() int i,j,k; int low,high,m; int rN; printf(“please input the data:n“); for(j=1;jhigh+1;k-) rk=rk-1;rk=r0; for(j=1;j #define N 8 void main() int i,j; int rN; printf(“please input the data:n“); for(j=1;j void main() int i,j,temp; int a10; printf(“please input the data:n“); for(i=0;i temp=aj; /aj与 aj+1互换,temp 是中间变量 aj=aj+1; aj+1=temp; for(i=0;i10;i+) printf(“%d “,ai);

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 学术论文 > 毕业论文

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号