Wrox Programmer Forums
Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
|
C++ Programming General discussions for the C++ language. For questions specific to Microsoft's Visual C++ variant, see the Visual C++ forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the C++ Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old January 13th, 2011, 09:04 AM
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





Similar Threads
Thread Thread Starter Forum Replies Last Post
dbml Class error danievermaak BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 1 October 9th, 2009 03:43 AM
ThemeSelector class error xrica32 BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 4 August 14th, 2007 08:20 PM
Using class reference getting error rojiin ASP.NET 2.0 Basics 2 July 6th, 2007 01:53 PM
Compilation error when declare class bluebeta Visual C++ 0 April 26th, 2006 03:06 AM
error ... when calling a class HumaMunir Java Espanol 2 May 7th, 2005 01:09 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.