for my math program, how do i tell it to carry out the operations, for example if the user entered:
3
*
9
-
2
+
5
E(termination character)
how do i tell it to do the multiplication, subtraction and so on? would i use a switch structure?
like:
switch ( operation ) {
case '*':
??????????;
break;
is that right or should i do it differently?
the numbers are stored as integers and the operations are char and both are stored in arrays.
thank you.