1106-冒泡算法C程序(语法树)
2024-10-16 07:54:01
#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"); }
最新文章
- USB驱动开发大全【转】
- text-justify实操
- Light OJ 1027 - A Dangerous Maze (数学-期望)
- hduacm 5104
- 解决WIN8 磁盘100 活动占用100% win8硬盘一直响
- 安装Android Studio报failed to find java version for &#39;C:\windows\system32\java.exe&#39;:[2] The system cannot find the specified file.错误的解决方案
- poj3177--Redundant Paths(边的双连通)
- TCP/IP协议原理与应用笔记02:断点续传
- jquery幻灯片--渐变
- SQL Server 移动系统数据库位置(非master)
- 解决新版Emacs的警告:Warning (initialization): Your load-path...
- Windows API 之 InternetOpen、InternetOpenUrl、InternetReadFile
- java学习笔记 --- 面向对象3
- python 版本管理工具 pyenv 使用备忘
- select动态绑定vue.js
- app内嵌vue h5,安卓和ios拦截H5点击事件
- caffemodel模型
- (三)MongoDB数据库注意
- Android 自定义 View 浅析
- tomcat设置虚拟路径映射服务器指定的物理路径
热门文章
- AISing Programming Contest 2019 Solution
- Spring-Boot 中 Redis 的简单使用以及简单模糊匹配删除
- Mysql优化原则_小表驱动大表IN和EXISTS的合理利用
- 20145104张家明 《Java程序设计》第5周学习总结
- 采用注解方式实现security
- UVa 11732 strcmp()函数(左孩子右兄弟表示法)
- 创建 shiny 应用程序
- RabbitMQ入门_03_推拉模式
- .net core部署到linux
- git-it 教程,一些git知识点。/ 如何解决merge conflict/ 如何使用Github Pages./Git术语表