Infix expression to postfix expression
-
I have a QString object that contains normal expression like "325*(25+53)/8" . How can I convert it into postfix expression ?
-
since this is not used in Qt (AFAIK) you will have to do it yourself:
use QString::at() and "QStack":http://qt-project.org/doc/qt-4.8/qstack.html class.
And follow "this":http://scriptasylum.com/tutorials/infix_postfix/algorithms/infix-postfix/ instruction. -
ok Thanx.