摘要: 转载地址 http://blog.163.com/fzu_q_q/blog/static/18645105720115270952949/一、对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类型数组排序(同int类型)char word[100];Sample:int cmp( const void *a , const void *b ) { retu 阅读全文
posted @ 2013-08-07 20:25 hpu张亚飞 阅读(175) 评论(0) 推荐(0) 编辑