|
-
May 20th, 2009, 05:11 AM
#9
Re: Using goto in c++ code
 Originally Posted by srelu
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|