T
tomerdr
Hi,
My infix expression never have brackets,
So how do i convert it to postfix?
For example 112*20 will yield 11220*
Which cannot be correctly evaluate(which is it 1*1220 or 11*220...?)
Is putting brackets when pushing operands on the stack is a good idea?
112*20 will yield (112)(20)* as a postfix string.
Thanks in advance.
My infix expression never have brackets,
So how do i convert it to postfix?
For example 112*20 will yield 11220*
Which cannot be correctly evaluate(which is it 1*1220 or 11*220...?)
Is putting brackets when pushing operands on the stack is a good idea?
112*20 will yield (112)(20)* as a postfix string.
Thanks in advance.