Hello,I define a shape class,then i just redefine the class,but then error C2969 occured.My code is below:
Code:
class Shape
{
protected:
CPoint StartPnt, EndPnt;
int shapenum;
public:
Shape(CPoint StartPnt, CPoint EndPnt, int shapenum)
: StartPnt(StartPnt), EndPnt(EndPnt), shapenum(shapenum) {}
Shape(Shape & s)
: StartPnt(s.StartPnt), EndPnt(s.EndPnt),
shapenum(s.shapenum) = 0;
Shape () {}
}
what's wrong here?I am a new hand of VC++.Can anyone give me a help here?Thanks.