qsort.h

来自「vpTrick algorithms code」· C头文件 代码 · 共 30 行

H
30
字号
/* * sort.h * * utility for sorting! * * By Philip Fu * * Sat Jan 13 19:34:22 EST 2001 * */#ifndef _SORT#define _SORT// 1) sort value in INCREASING order and output to sortList// 2) sortList must be initialized with " 0,1,...n-1 " before plug in as argumentvoid bubbleSortByIndex(int **sortList, double *value, int n);// Quick sort D[] and the corresponding comp[] in ascending order of// values of comp[].void q_sort(int *D, double *comp, int low,int high, int size);#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?