![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小工具
文章平均质量分 57
Unicoe
这个作者很懒,什么都没留下…
展开
-
有用的小工具收藏(1)
//可以用来消除运算后数组里最前边数的所有0 while(!sum[i]) i--;原创 2014-07-01 19:21:55 · 523 阅读 · 0 评论 -
qsort的使用
七种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类型数组排序(同int类型)转载 2014-07-02 11:05:39 · 734 阅读 · 0 评论