I'm making this RPN calculator in c++, but I'm having some trouble on the input section. I need the user to be able to input a double OR an operator, and the program needs to know what is what and execute different commands, but if I double a value, and input '+', the program gives me a huge number. What can I do?
I haven't done any coding yet, I was just wondering if someone has got a solution. I need the program to know if the user input is a number, and then add the number to an array, or if it is a char, and the calculate numbers.
I need some way that the user can input a double or an operator, and the program to know what to do.
Well theres an easy fix for that, try something out, bang your head against the wall for a few hours and you'll probably solve it by yourself.
You will feel acomplished and proud of yourself.
We don't do another people homeworks, go write some code, if you encounter problems (specific problems and not "how to do this?") then come back again.