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

Threaded View

  1. #9
    Join Date
    Feb 2009
    Posts
    23

    Re: Using goto in c++ code

    Quote Originally Posted by srelu View Post
    I don't think your sample is the best, because in your case you can write simply:
    Code:
     
    int SomeFunction(int parameter)
    {
        if (Initiate())
            if (AllocateMemory())
                if (RunAnalysis())
                    return TRUE;
        ReleaseMemory();
        return FALSE; 
    }
    If you look at his code this is exactly what he wants.
    I was just suggesting a simpler solution.

    Anyway, back to coding
    Last edited by ruderudy; May 20th, 2009 at 05:25 AM.

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