最新文章列表

排序法:插入排序

插入排序:   排序原理: 将待插入的数与前一位数(n-1)比较, 若前一位数大于待插入数, 则将前一位数后移一位, 直到前一位数小于或等于待插入数结束,将待插入数插入当前位(n)   public class InsertSort { public void InsertSortFun(int[] arrs) { if (arrs != nu ...
lycccxzt 评论(0) 有604人浏览 2014-07-24 11:01

插入排序

#include <stdio.h> #include <stdlib.h> void InsertSort(int *a,int n){     int i = 1;     int flag = 0;//标记交换的两个数的下标值     int temp = 0;//交换两个数据时作为中间变量使用     int exc  = 0;//标记是否后面的一个数小于前面的 ...
luoqidunwu 评论(0) 有778人浏览 2012-05-12 20:03

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics