How can i actually make this program go back to the menu when b is pressed? Im new to C++ so any tips for this script is much appreciated. Also is there any better replacement for the continuous "if/ else if"?Thanks

The loop works but is there a command that i can use to clear the command prompt? When the user finishes using it and wants to return to the menu, there's the history of the stuff that the user inputted on top.