登录
首页 » 数据结构 » 题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中; 2、当读到...

题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中; 2、当读到...

于 2022-03-18 发布 文件大小:6.20 kB
0 263
下载积分: 2 下载次数: 1

代码说明:

题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。 概要设计 1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中; 2、当读到运算符时,将栈中所有优先级高于或等于该运算符弹出,送至输出队列中,再将当前运算符入栈; 3、当读入左括号时,即入栈; 4、当读到右括号时,将靠近栈顶的第一个左括号上面的运算符全部一次弹出,送至输出队列中,再删除栈中的左括号。 5、使用VS栈来存储读入的操作和运算结果,然后进行数字字符到数值的转换。 -Title: Design of a topic, presentation operator priority method with arithmetic expression evaluation process. Summary of design 1, the order of scanning arithmetic infix expressions, when they read numbers directly to the output queue 2, when they read operator, it will stack all priority higher than or equal to the operator pop-up , sent to the output queue, and then the current operator入栈 3, when read left brackets, that is, when入栈 4, when they read the right brackets, it will be near the Top-left of the first operator in brackets above All a pop-up, sent to the output queue, and then delete stacks of left brackets. 5, the use of VS stack to store read operation and computing the results of numeric characters and then proceed to the numerical co

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • least squares curve fitting classic algorithms, the number of tests done, just c...
    最小二乘法曲线拟合的经典算法,做过特征数检验,只需调用fit,文件中其他函数被fit调用,其中个输入输出变量均以给出详细说明。-least squares curve fitting classic algorithms, the number of tests done, just call fit, the paper other function to be fit Call, 000 input and output variables were presented in detail.
    2022-08-24 02:39:13下载
    积分:1
  • 输入您的生辰八字,程序会帮你算出你的一元周期的所有点
    输入您的生辰八字,程序会帮你算出你的一元周期的所有点-Enter your birthday character, the program will help you calculate your cycle of one dollar all point
    2022-02-14 08:20:42下载
    积分:1
  • OTL4示例
    OTL4.0被设计成一个C++模板框架和OTL-适配器的组合。该框架是一个通用的实施OTL流的概念。该OTL-适配器周围的数据库API薄包装和作为类的类型参数传递到模板框架。
    2022-03-22 23:36:29下载
    积分:1
  • 可以随意将ACCESS和EXCEL之间的文件相互转换
    可以随意将ACCESS和EXCEL之间的文件相互转换-Can be between ACCESS and EXCEL file conversion
    2023-02-18 19:45:03下载
    积分:1
  • 汉语拼音对照表
    汉语拼音对照表,xls文件,带汉字的拼音、声调,可转换成数据库用于数据查询。参考文件Unihan.txt-correction Pinyin CRT, the original schedule from the Internet to collect and then after correction, but without changing the original schedule, based on users change their own circumstances. Unicode Chinese characters are the Chinese characters, reference documents Unihan.txt
    2022-06-19 21:25:56下载
    积分:1
  • 无向图的最小生成树程序,还不错哦~供大家分享,有文字说明...
    无向图的最小生成树程序,还不错哦~供大家分享,有文字说明-Undirected graph of the minimum spanning tree procedure, but also good for your sharing ~ Oh, there are text
    2022-08-05 11:30:08下载
    积分:1
  • E-store CMU SSD7 EXE4答案. 实现要求全部功能 绝对满分-E-store CMU SSD7 EXE4 answer. All the functional requirements to achieve absolute perfect score
    2022-07-09 08:24:37下载
    积分:1
  • vb多媒体库例子
    vb多媒体数据库例子-vb examples of multimedia database
    2022-12-02 13:20:03下载
    积分:1
  • Compact_& Repair Database
    这是一个简单的实用程序,允许您在不安装MS access的情况下压缩和修复access数据库。对于使用commondialogs和简单的文件复制/删除以及compact&;repair例程的示例来说,它也很好。
    2022-05-28 22:43:52下载
    积分:1
  • 用VC++6.0开发多表联接的库应用程序
    用VC++6.0开发多表联接的数据库应用程序-VC 6.0 multi-table database connectivity application
    2022-02-09 14:28:28下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载