文件名称:EX25
介绍说明--下载内容均来自于网络,请自行研究使用
编制一个算术表达式求值的程序
1)以字符序列的形式从终端输入表达式,实现对运算表达式的求值。
(2)演示在求值中运算符栈,运算数栈、输入字符和主要操作的变化过程。
(3)设置运算符栈和运算数栈辅助分析算符优先关系。
(4)在读入表达式的字符序列的同时,完成运算符和运算数的识别处理,以及
相应的运算。
(5)在识别出运算数的同时,要将其字符序列形式转换成整数形式。
-compiled an arithmetic expression for a value of the procedure) to form the sequence of characters from the terminal input expression, Operators achieve expression of the value. (2) demonstration at the University of value Operators stack, operand stack, and the main characters in the importation of the process of change operation. (3) The provision of Operators and operand stack Stack aided analysis operator precedence relations. (4) read into the expression of the sequence of characters, complete Operators and operands identification, and the corresponding operation. (5) identified several operations at the same time, his sequence of characters forms into integer form.
1)以字符序列的形式从终端输入表达式,实现对运算表达式的求值。
(2)演示在求值中运算符栈,运算数栈、输入字符和主要操作的变化过程。
(3)设置运算符栈和运算数栈辅助分析算符优先关系。
(4)在读入表达式的字符序列的同时,完成运算符和运算数的识别处理,以及
相应的运算。
(5)在识别出运算数的同时,要将其字符序列形式转换成整数形式。
-compiled an arithmetic expression for a value of the procedure) to form the sequence of characters from the terminal input expression, Operators achieve expression of the value. (2) demonstration at the University of value Operators stack, operand stack, and the main characters in the importation of the process of change operation. (3) The provision of Operators and operand stack Stack aided analysis operator precedence relations. (4) read into the expression of the sequence of characters, complete Operators and operands identification, and the corresponding operation. (5) identified several operations at the same time, his sequence of characters forms into integer form.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
EX25.c