
小知识
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 · 626 阅读 · 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 · 3141 阅读 · 1 评论