This sounds like a homework problem, so no specific solution will be offered until you convince me otherwise.
That said, I suggest to you first that you translate your infix expression into prefix and postfix forms, and remember that parentheses promote the surrounded expression to a greater precendence than any operator.
Main Topics
Browse All Topics





by: ozoPosted on 2008-06-18 at 15:21:15ID: 21817826
http://en.wikipedia.org/wi ki/Operato r- preceden ce_parser# Example_al gorithm_to _parse_inf ix_notatio n torials/in fix_postfi x/algorith ms/ infix-p ostfix/ind ex.htm
http://scriptasylum.com/tu