For example, 1 2 3 * + 4 -. A space between two data(operand or operator).
How to read it step by step and save as a proper parameter? for example, I declare two variable `int operand; char operator`. If it is scanned a data(operand or operator), how to save this data to a proper variable(operand or operator variable)? Example below,
By this method, I can pop or push the data properly. How to implement it?Code:1 2 3 * + 4 - (Now It is read "1", save as operand) .... (Now It is read "*", save as operator)