对qsort的理解

对qsort的理解 c语言中自带的快拍qsort, 须要本身写一个comp的比较函数. void qsort(void *base,int nelem,int width,int (*fcmp)(const void *,const void *)); (数组名, 长度, 比较函数)web # include <stdio.h> # include <stdlib.h> int a[] = {1
相关文章
相关标签/搜索