![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
文章平均质量分 68
lucifer_凡
这个作者很懒,什么都没留下…
展开
-
迭代器(iterator)
迭代器是一种“能够遍历某个序列内所有原创 2014-10-29 21:19:29 · 594 阅读 · 0 评论 -
仿函数(function object)
仿函数是行为类似函数的dui'xiang原创 2014-10-28 11:08:38 · 924 阅读 · 0 评论 -
C++友元函数与友元类的用法
1.一般情况下,外部的函数无法访问类的私有成员变量,原创 2014-10-16 23:10:24 · 541 阅读 · 0 评论 -
C++的mutable用法
提起mutable,就不得不提const,原创 2014-10-16 22:02:49 · 665 阅读 · 0 评论 -
C++函数模板
函数模板: 函数模板使用泛型来定义函数原创 2014-10-13 01:29:21 · 568 阅读 · 0 评论 -
分别使用一般递归的方法和模板元编程实现台阶问题。
台阶的问题是曾经腾讯的一道原创 2014-10-12 16:11:18 · 625 阅读 · 0 评论 -
C++ 引用 ‘&’
1.实现字符串数组的引用 #include using namespace std; //实现字符串数组的引用 void main1() { char a[3][10]{"hello", "world", "china"}; char(& ra)[3][10](a); for (auto i : ra) { cout << i << endl; } cin.get(); }原创 2014-10-10 22:14:34 · 516 阅读 · 0 评论