ex25

所属分类:模式识别(视觉/语音等)
开发工具:Visual C++
文件大小:2KB
下载次数:1
上传日期:2013-12-13 14:44:29
上 传 者wy6708
说明:  编制一个算术表达式求值的程序 1)以字符序列的形式从终端输入表达式,实现对运算表达式的求值。 (2)演示在求值中运算符栈,运算数栈、输入字符和主要操作的变化过程。 (3)设置运算符栈和运算数栈辅助分析算符优先关系。 (4)在读入表达式的字符序列的同时,完成运算符和运算数的识别处理,以及 相应的运算。 (5)在识别出运算数的同时,要将其字符序列形式转换成整数形式。
(Programming an arithmetic expression evaluation 1) in the form of a sequence of characters from the terminal input expression to realize arithmetic expression is evaluated. (2) demonstrated in the evaluation process of change in the operator stack, the operand stack, the input character and the main operation. (3) Set the operand stack and operator-assisted analysis of the stack operator precedence relationships. (4) into the expression while reading a sequence of characters to complete the identification process of the operator and operand, and Corresponding operation. (5) In recognition of the operands simultaneously, to convert it into a sequence of characters in the form of an integer.)

文件列表:
EX25.c (5686, 2006-11-28)
www.dssz.com.txt (214, 2010-06-08)

近期下载者

相关文件


收藏者