C语言编程学习课件 (29).pdf
《C语言编程学习课件 (29).pdf》由会员分享,可在线阅读,更多相关《C语言编程学习课件 (29).pdf(5页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
Programming In CProgramming In C Bubble Sort Bubble Sort works by repeatedly stepping through the list to be sorted,comparing each pair of adjacent items and swapping them if they are in the wrong order.For example,the list 6,5,7,3,4 need to be arranged in ascending order as 3,4,5,6,7.Bubble Sort for(=1;pai+1)tmp=ai;ai=ai+1;ai+1=tmp;i5-p p a0 a1 a2 a3 a4 Two Points:1.Comparing each pair of adjacent items.2.Swapping them if they are in the wrong order.Code Running result 3 4 5 6 7 Programming In CProgramming In C
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- C语言编程学习课件 29 语言 编程 学习 课件 29
限制150内