|
-
September 28th, 2009, 07:13 PM
#11
Re: Whats the problem with this code??
 Originally Posted by brett01
Thank you very much nuzzle,I didnt notice that.
Well I first told you how to correct the problem and then I told the others why their suggestions were wrong. 
Anyway it's usually better to organize code according to the traditional .h and .cpp system. But I also sometimes do as you did, putting everything on one file for ease of testing.
In both cases it's important to know whether a forward declaration is enough or if the full definition must be known. It determines the order of things.
Last edited by nuzzle; September 28th, 2009 at 07:20 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|