Raised This Month: $51 Target: $400
 12% 

[C++] Some weird errors I cannot understand.


Post New Thread Reply   
 
Thread Tools Display Modes
commonbullet
Veteran Member
Join Date: Oct 2005
Old 04-05-2007 , 10:54   Re: [C++] Some weird errors I cannot understand.
Reply With Quote #11

Quote:
Originally Posted by Zenith77 View Post
Code:
void Func():Func2()
Does it call Func2() then call Func(), or is it doing something else?
I don't know if understand your question...

AFAIK that's only for constructors.
Since in that case Func2 must be a 'parent' of Func class, Func2 constructor "Func2()" should be called first in initialization. Note that if Func2 has a default constructor, you don't need to place that.

Last edited by commonbullet; 04-05-2007 at 11:03.
commonbullet is offline
Send a message via ICQ to commonbullet Send a message via MSN to commonbullet
Zenith77
Veteran Member
Join Date: Aug 2005
Old 04-06-2007 , 13:35   Re: [C++] Some weird errors I cannot understand.
Reply With Quote #12

Ah thank you ^^.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
Reply



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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode