1014C程序语法树
2015-11-06 10:47
183 查看
![](http://images2015.cnblogs.com/blog/808637/201511/808637-20151106104341602-1231137997.png)
![](http://images2015.cnblogs.com/blog/808637/201511/808637-20151106104405477-1939945392.png)
程序:冒泡算法C程序
#include <stdio.h> main() { int i,j,temp; int a[10]; for(i=0;i<10;i++) scanf ("%d,",&a[i]); for(j=0;j<=9;j++) { for (i=0;i<10-j;i++) if (a[i]>a[i+1]) { temp=a[i]; a[i]=a[i+1]; a[i+1]=temp;} } for(i=1;i<11;i++) printf("%5d,",a[i] ); printf("\n"); }
相关文章推荐
- android定时器
- 一个网页菜单的CSS代码分析
- JasperReport:几个莫名其妙的问题的解决
- git配置
- java nio 抛出NonWritableChannelException异常
- 图像质量评价--SSIM
- Android系列教程之EditText使用详解-包含很多教程上看不到的功能演示
- (一)jsp是什么?有什么作用?
- (一)jsp是什么?有什么作用?
- Map遍历的三种方法
- LeetCode---Search a 2D Matrix II
- JCO3远程调用SAP接口随笔一(配置连接池)
- Selenium Webdriver : Element not found in the cache - perhaps the page has changed since it
- MySQL5.6新特性Index conditontion pushdow
- MongoVUE破解方法
- MySQL数据库使用命令行备份|MySQL数据库备份命令
- h.264 NAL单元分析
- HiddenField控件的使用
- KVO 设计模式之观察者模式
- git library