![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
小知识
ChangeCore
这个作者很懒,什么都没留下…
展开
-
倒置函数reverse
#include #include #include using namespace std; int cmp(int a, int b ) { if( a > b ) return 1; else return 0; } int a[] = {1,2,3,4}; int main() { sort(a,a + 4,cmp); for(i原创 2014-06-13 21:23:13 · 584 阅读 · 0 评论 -
sort函数降序排序
#include #include #include using namespace std; int cmp(int a, int b ) { if( a > b ) return 1; else return 0; } int a[] = {1,2,3,4}; int main() { sort(a,a + 4,cmp); for(i原创 2014-06-13 21:24:02 · 3076 阅读 · 1 评论