2017年8月17日

C语言 冒泡排序

摘要: 冒泡排序( Bubble Sort ) 比较相邻的两个数,如果错误则进行交换,重复访问整个排序的数列 #include <stdio.h> #define KSIZE 8 static int count; // 冒泡排序 void bubble_sort(int a[],int n); int m 阅读全文

posted @ 2017-08-17 11:47 7890陈 阅读(160) 评论(0) 推荐(0) 编辑

导航