文件名称:DATA_STRUCTURE
- 所属分类:
- 其他小程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 476kb
- 下载次数:
- 0次
- 提 供 者:
- 陈**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
题 目: 算术表达式求值的程序设计
初始条件:
表达式计算是实现程序设计语言的基本问题之一,也是栈的应用的一个典型例子。设计一个程序,演示用算符优先法对算术表达式求值的过程。
以字符序列的形式从终端输入语法正确的、不含变量的整数表达式。利用教科书表3.1给出的算符优先关系,实现对算术四则混合运算表达式的求值,并仿照教科书的例3-1演示在求值中运算符栈、运算数栈、输入字符和主要操作的变化过程。
-Title: Arithmetic expressions evaluate the initial conditions of the program design: expression of the calculation is to achieve programming language one of the fundamental issues, but also stacks of applications a typical example. Design a procedure to demonstrate the priority method of arithmetic operator expression evaluation process. Sequence of characters in the form of input from the terminal grammar correct, non-integer variable expression. Using the textbook Table 3.1 gives the operator precedence relations, the realization of the four mixed computing arithmetic expression evaluation, and follow the textbook demonstration cases 3-1 in order to value stack operator, computing the number of stacks, input characters and the main operation processes.
初始条件:
表达式计算是实现程序设计语言的基本问题之一,也是栈的应用的一个典型例子。设计一个程序,演示用算符优先法对算术表达式求值的过程。
以字符序列的形式从终端输入语法正确的、不含变量的整数表达式。利用教科书表3.1给出的算符优先关系,实现对算术四则混合运算表达式的求值,并仿照教科书的例3-1演示在求值中运算符栈、运算数栈、输入字符和主要操作的变化过程。
-Title: Arithmetic expressions evaluate the initial conditions of the program design: expression of the calculation is to achieve programming language one of the fundamental issues, but also stacks of applications a typical example. Design a procedure to demonstrate the priority method of arithmetic operator expression evaluation process. Sequence of characters in the form of input from the terminal grammar correct, non-integer variable expression. Using the textbook Table 3.1 gives the operator precedence relations, the realization of the four mixed computing arithmetic expression evaluation, and follow the textbook demonstration cases 3-1 in order to value stack operator, computing the number of stacks, input characters and the main operation processes.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
表达式求值
..........\debug
..........\表达式求值
..........\..........\Debug
..........\..........\表达式求值.vcproj
..........\..........\表达式求值.vcproj.DUJUAN.Administrator.user
..........\表达式求值.ncb
..........\表达式求值.sln
..........\debug
..........\表达式求值
..........\..........\Debug
..........\..........\表达式求值.vcproj
..........\..........\表达式求值.vcproj.DUJUAN.Administrator.user
..........\表达式求值.ncb
..........\表达式求值.sln