中缀表达式就是我们通常使用的表达式。 后缀表达式,又称为逆波兰表达式,所有操作符置于操作数的后面,且 不需要括号来标示操作符的优先级。 举个例子:中缀表达式为a*(b+c),其对应的后缀表达式为abc+*。 那么, 后缀表达式如何 计算呢?用栈。以后缀表达式abc+*为例: 从左向右依次扫描。 操作数入栈,a入栈,b入栈,c入栈;遇到运算符