Quote Originally Posted by lixo1 View Post
wysota > And lose the goto
What you recommend to use?
I don't use "return;" because after the loop I delete my arrays.
There are numerous ways to do it. The easiest one is to allocate all the data on the stack and not on the heap (the latter using the "new" operator). Another is to delete the data using an external function call and then call return. You can also use the "break" keyword to bail out of a loop.