I'm having problems with the getline function of the string class. This is what I get everytime I test:
An empty stack has been initiated.
Enter a postfix expression (Y or N)?:y
Enter your expression (separated by blanks): Enter a postfix expression (Y or N)
?:
This is part of the code I don't think I need to put all of it:
I use the getline function in line 20.
i dont see any problem .
if you do this way it will read the expression untill it sees the \n charaacter
if you do this
getline(cin,exp,'?');
it will read the expresion untill it reach to '?'
if you can spicify whats the problem it will be better.