• Help with C++
    5 replies, posted
Is there a command that makes the whole program stop and start all over again?
goto edit: can you elaborate on why you want to do this?
[QUOTE=shill le 2nd;19105988]goto edit: can you elaborate on why you want to do this?[/QUOTE] Yey, spaghetti code. :downs:
well, I would suggest enclosing the whole thing in a while loop, but I need to know a bit more about the logic of his code and what he's trying to accomplish. also, one goto does not make spaghetti code. if you're jumping all over the place like a batch file, then that's bad, but the Linux kernel uses goto in an organized way
In the end, even though the answer is simple, you're reasoning and purpose are not. More elaboration please?
[QUOTE=Helpful stalker;19105971]Is there a command that makes the whole program stop and start all over again?[/QUOTE] Command? Just make a loop in your programs entry point. You could also use continuations, although not many languages support that.
Sorry, you need to Log In to post a reply to this thread.