![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
文章平均质量分 74
fj352127189
这个作者很懒,什么都没留下…
展开
-
op函数写法
<br /> 在学习标准库时,我们会遇到很多需要传一个函数作为参数的函数,比如说:<br /> <br /> UnaryProc for_each(InputIterator bey, InputIterator end, UnaryProc op); // 以下省略参数及返回值 count_if(...); min_element(...); max_element(...); find_if(...); search_n(...); find_end(...); eq原创 2010-08-21 09:10:00 · 3320 阅读 · 0 评论 -
Sort——STL
<br />//Sort——STL.cpp:列举了c++、C里面定义好的Sort函数,重点说明STL中的sort函数 #include <iostream> #include <algorithm> #include <vector> #include <functional> using namespace std; int Comp(const void *p1, const void *p2 ) { return *((int *)p2) < *((int *)p1) ?原创 2010-09-14 19:31:00 · 676 阅读 · 0 评论