上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 38 下一页
摘要: search_n 查找连续匹配的 search 1. search_n(b,e, c, v) 2. search_n(b, e, c, v, p ) --p谓词 3.注意 该算法的第二种形式应该是 search_n_if(b,e,c,p) #include <iostream> #include < 阅读全文
posted @ 2015-03-04 12:03 SandKing 阅读(9) 评论(0) 推荐(0)
摘要: 1.find() 2.find_if() 3.search_n() 4.search() 5.find_end() 6.find_first_of() 7.adjacent_find() 已序区间查找算法: binary_search() includes() lower_bound() upper 阅读全文
posted @ 2015-03-03 18:57 SandKing 阅读(3) 评论(0) 推荐(0)
摘要: 1.const_cast。 你知道,一个int*是可以直接赋给一个const int*的,但是一个const int*是不可以直接赋给一个int*的。这就需要: int* pi=const_cast<int*>pci; 他还可以把volatile和对齐特性(alignment)去掉。 2.reint 阅读全文
posted @ 2015-03-03 18:04 SandKing 阅读(2) 评论(0) 推荐(0)
摘要: 1.min_element(b, e) 2.min_element(b, e, op) 3.max_element(b, e) 4.max_element(b, e, op) #include <iostream> #include <algorithm> #include <deque> usin 阅读全文
posted @ 2015-03-03 16:06 SandKing 阅读(14) 评论(0) 推荐(0)
摘要: 1.count 2.count_if 3.关联容器的等效成员函数 (1) set.count (2) multiset.count (3) map.count (4) multimap.count #include <iostream> #include <algorithm> #include < 阅读全文
posted @ 2015-03-03 15:46 SandKing 阅读(8) 评论(0) 推荐(0)
摘要: 1.预定义的函数对象 2.自定义的函数对象 3.容器和函数对象 4.算法和函数对象 #include <iostream> #include <set> #include <algorithm> #include <vector> using namespace std; void Print( i 阅读全文
posted @ 2015-03-03 15:12 SandKing 阅读(6) 评论(0) 推荐(0)
摘要: 1. 100多种算法 2.函数对象(function objects ) 3.函数适配器(function adapters ) 4.三个头文件 #include <algorithm> #include <numeric> #include <functional> 预定义函数对象 negate< 阅读全文
posted @ 2015-03-03 14:18 SandKing 阅读(7) 评论(0) 推荐(0)
摘要: 1.set(集)、multiset(多集) 2.红黑树 3.基本操作 insert count和find erase 注意:不能通过find进行修改 #include <iostream> #include <set> using namespace std; template <typename 阅读全文
posted @ 2015-03-03 12:41 SandKing 阅读(9) 评论(0) 推荐(0)
摘要: 系列文章原载于自己的博客,TOPI.CO (http://topi.co) ,某天不小心就push错啦,懒得从头再来,上传到Ruby-China来,一是方便自己回顾,另外也方便跟我一样的初学者 这些软件包都是在安装CoreSeek4.01时必须的。但后来者也代码升级,CoreSeek安装已经不需要。 阅读全文
posted @ 2015-03-03 10:49 SandKing 阅读(48) 评论(0) 推荐(0)
摘要: map(映射) \ multimap(多映射) 红黑树(数据结构 ) 基本操作 insert: 4种方法 count和find erase:3重方法 ***注意:不能通过find进行修改! #include <iostream> #include <map> #include <string> us 阅读全文
posted @ 2015-03-02 18:49 SandKing 阅读(5) 评论(0) 推荐(0)
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 38 下一页