View Single Post
  #1 (permalink)  
Old January 13th, 2011, 09:04 AM
Waterharbin Waterharbin is offline
Authorized User
 
Join Date: Aug 2010
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default error C2969 while redefine a class

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.
Reply With Quote