First off, new to c++.
Background: I am using a series of switches for a simple console menu like this:
...
Switch (user_input)
{
case 1:
Submenu1();
Break;
...
The submenu1 function lives in a different .cpp file. The submenus each have a similar case to get back to the main menu, and other cases for utility programs, manipulating large data files. The solution compiles and I can navigate back and forth from the menu to the submenus and back.
Questions: Each time I make a new menu selection, am I correct in thinking I am burrowing into lays of these switches? It doesn't seem like I'll ever get to the break statements since the console is still running the next function. Will this ever impact anything? Independent of the specific performance of this instance, I'm looking for guidance on the best practices and principles and not just fudging it.
Thanks!