C++ Return to command input function
<p>I'm trying to make a simple program that takes a user command, executes a function, then returns to the original function so the user can enter another command, much like windows command prompt. Upon browsing the similar questions I read that returning to main is not good programming so I want to ask:</p>

<p>How can I make a function that has access to the other functions but the other functions can return to once they finish their process? </p>
