> Question about C++ coding?

Question about C++ coding?

Posted at: 2014-12-18 
Just Do this: Put all that calculation stuff into a new method like this : void doCalculation(){/*Calculation*/}

and then before you are returning from that function call that function again.

use a do while loop that has the code you want to repeat inside of it.

So I have this assignment for my C++ class that involves a initial menu where you can select logarithm, root or to exit the program, depending on the option you choose it may continue into another menu until you input a number and the program does the calculation outputting such to the user. My problem is that after each calculation I need the program to return to the initial menu and the way I have it setup right now it just cycles through all the options until it goes through all of them. Since the coding I have so far is too much to place here please check the picture. I don't need a full overhaul of what I got so far just a fix to make it so that after each calculation it will return to the first menu until the user chooses to exit.

Thank ahead for any help.