CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 11 of 11

Threaded View

  1. #11
    Join Date
    May 2009
    Posts
    2,413

    Re: Whats the problem with this code??

    Quote Originally Posted by brett01 View Post
    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
  •  





Click Here to Expand Forum to Full Width

Featured