having problems with parenthesis in postfix to infix conversion
Posted on 2003-02-21
hi, this is my first time but i really need help.
The program i'm writing is a postfix to infix converter in c++, the conversion part concerning the placement of operators is working fine (i'm using a stack) and didn't take much time but i'm having problems dealing with the parenthesis, in part because i'm trying to avoid useless ones. For example: (a*b)+(c*d)=a*b+c*d. If someone has an idea to solve my problem or who can tell me what propreties have () regarding operators in postfix notation, please let me know.