Skip to content
How to return to another line of code in c++
Profile icon

I am programming in c++ and making a food ordering app, first it shows the menu, then you pick something, then I want the program to to return to the line of code that shows the menu and you input what else you want.

For example if I had 100 lines of code, perimeters were met at line 80 to go back to line 8, how would I do that? Please answer if you can so I can finish this project! (sorry if my problem did not make sense to you!)

You are viewing a single comment. View All
Answered by Geocube101 [earned 5 cycles]
View Answer
Profile icon

it's generally bad practice to use goto, so try not to use it. You could try using a loop instead.