泛型算法(四)之计数算法
摘要:1、count(InputIterator first, InputIterator last, const T& val):序列中等于给定值的元素的计数 std::vector<int> c; c.reserve(10); //向c中添加元素 for (int i = 0; i < 10; i++
阅读全文
posted @ 2016-01-19 09:34
我真的只是随便写写。。。
posted @ 2016-01-19 09:34
posted @ 2016-01-19 09:21
posted @ 2016-01-18 21:47
posted @ 2016-01-18 21:16
posted @ 2016-01-18 17:40
posted @ 2015-10-27 17:11