Hi, i'am trying to read postfix expression from txt file and evaluate it
the input is 10 5 * ,the output should be 50, but it reads only 10 and 5, where's the error?
here's my code
The variable str is not doing you anything as far as I can tell.
Are you sure that when you extract from a stream in to an integer that it will accept any ANSI character? (i.e., reading a [non-alphanumeric] character in to an integer probably fails the stream)