
STL Algorithm
文章平均质量分 76
IOT_Change
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
STL中remove_if()/find_if()/replace_if()的使用方法(The usages of remove_if()/find_if()/replace_if() )
In one of my c++ homework, my teacher let us use some algorithms in STL to operate the student's information.To finish the task, I needed learn to use the algorithms of remove_if(),find_if,replace_原创 2012-12-14 18:19:16 · 1553 阅读 · 0 评论 -
sort函数对数组、容器以及结构体的排序(for sort)
排序是程序设计应用最广泛的算法之一,所以学好排序的重要性,你懂的! 关于排序自己会用的不多,先在这里做个小结! 首先,sort函数可以对数组和结构体进行排序,还是用实例说话吧!一句话,都在代码里! #include #include #include #include using namespace std; bool cmp(int i,int j) { return (i原创 2013-01-10 21:11:12 · 6884 阅读 · 1 评论