conversion from infix to prefix

后端 未结 14 1308
有刺的猬
有刺的猬 2020-12-09 10:24

I am preparing for an exam where i couldn\'t understand the convertion of infix notation to polish notation for the below expression:

(a–b)/c*(d + e – f / g)         


        
14条回答
  •  一整个雨季
    2020-12-09 10:45

    Maybe you're talking about the Reverse Polish Notation? If yes you can find on wikipedia a very detailed step-to-step example for the conversion; if not I have no idea what you're asking :(

    You might also want to read my answer to another question where I provided such an implementation: C++ simple operations (+,-,/,*) evaluation class

提交回复
热议问题