我有一堂课,
class Points
{
public:
Points();
}
还有一个,
class OtherPoints : public Points
{
public:
OtherPoints ();
Points myPoints;
}
现在在OtherPoints()
构造函数中,我正在尝试创建一个Point
变量,例如,
OtherPoints::OtherPoints(){
myPoints=Points();
}
并得到错误,
错误 C2582:“点”中的“运算符 =”功能不可用