摘要: 七种qsort排序方法 <本文中排序都是采用的从小到大排序> 一、对int类型数组排序 int num[100]; Sample: int cmp ( const void *a , const void *b ) { return *(int *)a - *(int *)b; } qsort(num,100,sizeof(num[0]),cmp); 二、对char类型数组排序(同in... 阅读全文
posted @ 2009-08-20 16:44 pangpangxiong 阅读(170) 评论(0) 推荐(0) 编辑