【发布时间】:2011-10-18 15:22:18
【问题描述】:
如何在 c++ 中进行“自我”(this)赋值?
Java:
public Point(Point p) {
this(p.x, p.y);
}
在 C++ 中如何做到这一点?
只有this->(constructor of point that takes x, constructor of point that takes y);类似吗?
【问题讨论】:
标签: java c++ constructor this