Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > C# and C > C++ and Visual C++ > C++ Programming
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old January 13th, 2011, 08: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
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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



All times are GMT -4. The time now is 10:48 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.