Here is an example of loop I used on a console program I made a while ago.

Code:
int main()
{
      program();
      return 0;
}


void program()
{
	while (y != 'e')
	{
		menu();
		cin >> y;
		ans(y);
		
	}
}


void menu() // display menu
{
	cout <<endl<< "What would you like to do?" << '\n'<<endl;
      	cout << "[I] Input a date?" << endl;
	cout << "[O] Output a date?" << endl;
	cout << "[D] Delete a date?" << endl;
	cout << "[E] Exit?" << endl << endl;
}


void ans(char y) // handles answers to menu
{
	switch (y)
	{
		case 'i':
			input();
			break;
		case 'o' :
			output();
			break;
		case 'd' :
			delet();
			break;
		case 'e' :
			break;
	}
}
Thise is not the full code but I think its a good example on how you could do it for a calculator..