头文件

 1 //@ author 成鹏致远
 2 //@ net http://infodown.tap.cn
 3 //@ qq 552158509
 4 //@ blog lcw.cnblogs.com
 5 
 6 #ifndef _MYINCLUDE_H
 7 #define _MYINCLUDE_H
 8 
 9 #include <stdio.h>
10 #include <stdbool.h>
11 
12 extern void bubble_sort(int n,int test[]);//冒泡排序
13 
14 extern void select_sort(int n,int number[]);//选择排序
15 
16 extern void swap(int number[], int i, int j);//用于交换数组中的索引为i,j的数
17 
18 extern int quick_pass(int *array, int low, int high);//得到基准值应该存放的位置
19 extern void quick_sort(int *array, int low, int high);//快速排序
20 
21 extern void insert_sort(int len, int *array);//插入排序
22 
23 extern void shell_sort(int len, int *array);//希尔排序
24 
25 #endif
View Code

相关文章: