The point of the code is to make an RPN calculator. Everything seems to be working fine, except for my "quit" and "clear" commands. Whenever q or c is entered the code stops working. Any advice is appreciated. Here is my source code.
Please use code tags. Go back and select the code and press <> in the toolbar on the right.
I tried your code and it runs OK via q and c input.
A couple of things:
1. #include's aren't followed by a ';'
2. You have 2 if input == '+' statements when the second should be '-'
3. It's a good idea to have an if statement in the '/' part for the 0 divisor case