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
posted @ 2017-08-17 11:47