cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
return to line in code??
return to line in code??
Apr 4, 2012 at 5:58pm UTC
Ch1156
(2010)
Is there a way to tell my code to return to a different part in the code?? like say i make a variable int x and my code gets done, can i make it return to that variable or part in the code to make it run again without using a loop?
Apr 4, 2012 at 5:59pm UTC
Shinigami
(309)
yes, don't remember how, but I think
back:
go_to back;
or similar.
Last edited on
Apr 4, 2012 at 6:00pm UTC
Apr 4, 2012 at 6:38pm UTC
Aramil of Elixia
(772)
goto?
Apr 4, 2012 at 6:42pm UTC
Computergeek01
(5613)
You should use a function for this. goto has it's uses but controlling the program flow like this is not one of them.
Topic archived. No new replies allowed.