Im having trouble grasping the concept of RPN. I have to read it and evaluate using stack
// im reading it in as a string
cout << "Enter: ";
cin >> prefix;
// then I convert it to integer
but then how do i differentiate from a number and an operand?
Any help would be appreciated
Last edited on