文件名称:biaodashiqiuzhi
介绍说明--下载内容均来自于网络,请自行研究使用
设计一个程序,演示用算符优先法对算术表达式求值的过程。利用算符优先关系,实现对算术四则混合运算表达式的求值。
(1)输入的形式:表达式,例如2*(3+4)
包含的运算符只能有 + 、 - 、 * 、 / 、 ( 、 ) ;
(2)输出的形式:运算结果,例如2*(3+4)=14;
(3)程序所能达到的功能:对表达式求值并输出
-Design a program that demonstrates the value of the process. Arithmetic expressions and operator precedence method Operator precedence relations, and four hybrid operation of the arithmetic expression is evaluated. Input in the form of: (1) The expression 2* (3+4) contains the operator can only have ' +' , ' -' , ' *' , ' /' , ' (' , ' )' (2) output in the form of: computing a result, such as 2* (3+4) = 14 function (3) procedures that can be achieved: the expression is evaluated and output
(1)输入的形式:表达式,例如2*(3+4)
包含的运算符只能有 + 、 - 、 * 、 / 、 ( 、 ) ;
(2)输出的形式:运算结果,例如2*(3+4)=14;
(3)程序所能达到的功能:对表达式求值并输出
-Design a program that demonstrates the value of the process. Arithmetic expressions and operator precedence method Operator precedence relations, and four hybrid operation of the arithmetic expression is evaluated. Input in the form of: (1) The expression 2* (3+4) contains the operator can only have ' +' , ' -' , ' *' , ' /' , ' (' , ' )' (2) output in the form of: computing a result, such as 2* (3+4) = 14 function (3) procedures that can be achieved: the expression is evaluated and output
(系统自动生成,下载前可以参看下载内容)
下载文件列表
表达式求值实验报告.doc