10-28-2011, 06:22 PM
nnnngh, I have to write a C++ program that evaluates any prefix expression the user inputs (i.e. + 10 11 =21, + 25 - 43 21 =47), and I've wrote something that can only evaluate expressions with single digit operands(like +99=18 and -5*22=1), but I have no idea how to expand this to multiple digit operands.
I've spent forever trying to figure this out and it's due Tuesday, it's starting to get very irritating/stressful :/
I've spent forever trying to figure this out and it's due Tuesday, it's starting to get very irritating/stressful :/