释义 |
1 ?运算符栈 咱们都晓得在运用算符优先文法时必需运用两个根本栈,数栈(operand stack)和运算符栈(operator stack),来完结核算事情,但是单单运用这两个栈有必定的限制性,因而在描绘时,我引进了第三个栈(op stack),下面咱们就来剖析一下。 2 ?作器堆栈功能 比如在3ds Max具有操作器堆栈功能(operator stack)以前,在Maya具有构建汗青以前,在Softimage具有建模关系(modeling relations)以前,在Softimage和Alias公司为它们各自的软件施用基...
- 1
If the character is an operator, pop two operands, perform the appropriate operation, and then push the result onto the stack. 如果字符是个操作符,弹出两个操作数,执行恰当操作,然后把结果压入堆栈。 - 2
Push the operator onto the stack. - 3
When it is an operator, pop two Numbers from the stack, do the calculation, and push back the result. 当它是一个操作符时,从栈中弹出两个数进行运算,并且将运算结果压入栈中。
|