Maybe its not how YOUR algorithm works but I suggested a different algorithm you can use. Have you bothered to Google "infix to postfix"?
Type: Posts; User: Junky
Maybe its not how YOUR algorithm works but I suggested a different algorithm you can use. Have you bothered to Google "infix to postfix"?
7 + 3 infix
7 3 + postfix
The easiest way to evaluate infix equations is to convert them to post fix first.