Question: Need help evaluating a prefix multi digit expression with spaces between each number in c++. The prefix expression is given as a string, and I'm
Need help evaluating a prefix multi digit expression with spaces between each number in c++. The prefix expression is given as a string, and I'm having trouble reading from right to left(as a prefix expression should) and keeping track of the multi-digit numbers. If you think you could do it by instead converting the prefix into postfix then that would also solve my issue, because I've got postfix solved in this method. An example of a prefix that I would be given would look like this + 14 - 1 * 3 5
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
