I am trying to write a program that can do postfix expressions in c++. First I have to read in the user input as a string. But how would I break up the string so I can tell whether each data is a number or a math operator? Please help me with this.
Code:int main() { string a; getline(cin, a) //How to break up the string into individual chunks for analyzing? return 0; }