Welcome to the board.
Nice try with the code tags, but it's a / instead of a \ before the word code that does the magic.
Often this type of a program is set up with a menu and a switch:
//menu
int choice;
cout << "enter # of selection from choices below" << endl;
cout << "1) +" << endl;
cout << "2) -" << endl;
//etc
cin >> choice;
or
char choice;
cout << "enter the sign of the arithmetic function you wish to do" << endl;
cin >> choice;
Then use choice as the conditional of the switch:
Code:
switch(choice)
{
case 1:
//do adding or call add function
break;
case 2:
//do subtraction or call subtraction function
break;
//etc
}
or
switch(choice)
{
case '+':
//do adding or call add function
break;
case '-':
//do subtraction or call subtraction function
break;
//etc
}