搜索资源列表
逆波兰表达式
- 计算用运算符后缀法表示的表达式的值。后缀表达式也称逆波兰表达式,比中缀表达式计算起来更方便简单些,中缀表达式要计算就存在着括号的匹配问题,所以在计算表达式值时一般都是先转换成后缀表达式,再用后缀法计算表达式的值。如:表达式(a+b*c)/d-e用后缀法表示应为abc*+d/e-。只考虑四则算术运算,且假设输入的操作数均为1位十进制数(0—9),并且输入的后缀形式表达式不含语法错误-calculated Operators suffix France said the value of the e
shujujiegou
- 1、 用户键盘输入一个中缀表达式,回车表示结束;如果该中缀表达式正确,那么在字符界面上输出其后缀表达式,其中后缀表达式中两相邻操作数之间利用空格隔开;如果不正确,在字符界面上输出表达式错误提示。 2、 四则运算表达式求值。将中缀表达式转换为后缀表达式,计算并输出结果。利用二叉树后序遍历来实现表达式的转换,同时使用栈来求解后缀表达式的值。 3、 测试数据 - a student can learn it so ,a hope we can share it together
expression_cal
- 中缀表达式转后缀表达式(C++版本),这里转化能便于对表达式计算处理-Infix expression turn postfix expression (C++ version), where transformation can facilitate the expression evaluates to handle
infix_to_po
- 后缀转中缀的表达式,一样可以用的,需要的可以拿去-Suffix turn infix expression can be used as needed may take
infixpofix
- 中缀表达式的应用和测试例子,有需要的可以直接拿过去用,不用谢-Application and test case infix expression, the need to be able to directly take over with, you' re welcome
caculator115
- 用户输入四则运算的中缀表达式(可包含小括号),程序首先将中缀表达式转为后缀表达式并输出,然后计算结果并输出。-User input of infix arithmetic expression (which can include parentheses), the program first infix expression to postfix expression and the output, then the results and outputs.
fpmt
- 由于不上传就不能下载 所以我随便传了一个这个程序能计算一个中缀表达式-Because do not upload will not be able to download So I just preach a the program can calculate a infix expression