摘要: 情形如下: class Point{public:Point(int xx, int yy) { x = xx; y = yy; }Point(const Point &p):x(p.x),y(p.y) //这里的复制构造函数对象p竟然能直接访问自己的私有成员?? { }private: int x 阅读全文
posted @ 2023-04-10 00:20 赵龙涛 阅读(76) 评论(0) 推荐(0)