找回密码
 立即注册
运算符theoperator波兰 | 搜索引擎 2022-09-25 142 0star收藏 版权: . 保留作者信息 . 禁止商业使用 . 禁止修改作品
通过运算优先级联系矩阵对输入的表达式生产逆波兰式。逆波兰表达式生成算法的关键在于比较当时运算符与栈顶运算符的优先联系,若当时运算符的优先级高于栈顶运算符,则当时运算符入栈,若当时运算符的优先级低于栈顶运算符,则栈顶运算符退栈。
说明.doc

(Produces the inverse Polish formula for the input expression by operating on the priority relation matrix. The key of the reverse Polish expression generation algorithm is to compare the precedence relationship between the current operator and the stack top operator. If the current operator's priority is higher than the stack top operator, the current operator is pushed onto the stack. If the current operator's priority is higher than the stack top operator Below the top-of-stack operator, the top-of-stack operator pops off the stack.
Description.doc)

[下载]21452927859.rar




上一篇:模拟网吧管理(C语言控制台程序)
下一篇:Java2学习指南