![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
易错点
求知 求是
这个作者很懒,什么都没留下…
展开
-
C++ 中复制构造函数错点分析
#include <iostream> using namespace std; class Sample { public: int v; Sample(const Sample& a) { v = a.v+2; } Sample(int a=0) ...原创 2018-06-19 18:53:57 · 257 阅读 · 0 评论 -
C++ 易错点 类的友元函数
#include <iostream> using namespace std; class Point { private: int x; int y; public: Point() { }; friend istream& operator>>(istream&...原创 2018-06-20 17:48:41 · 335 阅读 · 0 评论