
面试题-概念题
文章平均质量分 95
fdsafwagdagadg6576
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
常见面试题-概念题答案
1vector sara; Vector:: iterator it; For(it=sara.begin();it!=sara.end();it++) If( (*it)&&(*it)->data==bara->data ) { Delete(*it); Sara.erase(it); } 错在哪里? answer: erase在删除之后,自动+1,这样下一个for循环,又原创 2016-06-28 18:14:59 · 794 阅读 · 0 评论 -
static静态成员变量/函数,non-static非静态成员变量/函数,局部变量,global 变量作用域和生存周期
static成员变量,non-static成员变量,局部变量,global 变量作用域和生存周期原创 2016-07-03 20:19:26 · 659 阅读 · 0 评论 -
《effective c++》笔记
术语: 一: 1 声明 1.1 变量 extern int x; 在类中int x 1.2 函数 class GraphNode; int numDigits(int number); 2 定义:提供代码本体 int x; 在类外 int numDigits(int number) { ...... } class Widget { ......原创 2017-01-07 14:10:22 · 343 阅读 · 0 评论 -
c/c++/c++11浅拷贝和深拷贝
1 C++编译器将自动为A 产生四个缺省的函数,例如: A(void); // 缺省的无参数构造函数 A(const A &a); // 缺省的拷贝构造函数 ~A(void); // 缺省的析构函数 A & operat...原创 2016-06-14 20:01:18 · 454 阅读 · 0 评论