C++ RPN calculator problem
ooo
Last edited on
1 2 3
|
cout << "Please enter the RPN expression to be evaluated:\n";
// cin >> token; // try commenting this out
while(cin >> token && token != ':')
|
You read in the first token and then immediately replace it by reading in another before processing.
Wow cannot believe I missed that. Thank you very much it complies fine now!
Topic archived. No new replies allowed.