摘要: 原文链接:http://www.slyar.com/blog/stdlib-qsort.htmlqsort包含在<stdlib.h>头文件中,此函数根据你给的比较条件进行快速排序,通过指针移动实现排序。排序之后的结果仍然放在原数组中。使用qsort函数必须自己写一个比较函数。函数原型:void qsort ( void * base, size_t num, size_t size, int ( * comparator ) ( const void *, const void * ) );用法以及参数说明:Sorts the num elements of the array p 阅读全文
posted @ 2012-07-23 16:25 Maxwell:My Blog 阅读(667) 评论(0) 推荐(0) 编辑