I am trying to evaluate expressions that are inputted as strings
example: string svar1="1 * 2 * 3";
I need to be able to evaluate that to answer 6.
I am thinking about parsing it by spaces, then match the operators with switch to each functions (need to do +,-,*,/,%, etc) but it seems like a very tedious way as there are so many operators to code. Is there a way to convert a char/string containing an operator into actual operator?