![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
看书笔记,effective
LUCASYAN个
这个作者很懒,什么都没留下…
展开
-
2构造/析构/赋值运算
条款5:默认函数必须定义自己的函数的特殊情况1、如果在含有引用成员的类内使用赋值操作,必须自己定义赋值操作符。因为C++不支持对引用对象映射的更改。2、含有const成员的类也是这样。3、基类将赋值运算符声明为private时,编译器拒绝为派生类生成赋值运算符。因为编译器为派生类生成的赋值运算符是可以处理基类部分的,但是派生类无权调用基类的private成员,因此,编译器拒绝为派生原创 2017-04-27 14:32:28 · 335 阅读 · 0 评论 -
树- path sum
112 Path Sum33.9%Easy 剑 34Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.For example:Gi原创 2017-08-19 22:51:52 · 164 阅读 · 0 评论