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

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

于 2022-03-18 发布 文件大小:6.20 kB
0 208
下载积分: 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 个回复

  • The use of ADO technology to connect ACCESS database (change the connection stri...
    运用ADO技术连接ACCESS数据库(改变连接字串就能连接SQL数据库),做了一个家庭记账管理软件!用到了读写数据,写数据,更改数据,删除数据等操作,学习数据库编程的朋友可以看看!-The use of ADO technology to connect ACCESS database (change the connection string will be able to connect SQL database), so a family of account management software! Use the read and write data, write data, change data, delete data operation, the study database programming friends can see!
    2022-05-06 02:48:08下载
    积分:1
  • Database System Design (seventh edition).
    数据库系统设计(第七版).-Database System Design (seventh edition).
    2022-04-14 12:39:58下载
    积分:1
  • VC下ADO开发实践,整理总的一片文章,可以按照其说明学习在VC环境下的ADO库应用程序开发...
    VC下ADO开发实践,整理总结的一片文章,可以按照其说明学习在VC环境下的ADO数据库应用程序开发-VC developed under the ADO practice, finishing a summary of the article, you can note in accordance with their learning in VC environment ADO database application development
    2022-02-05 07:58:12下载
    积分:1
  • uuuuuuuuuuuuuuuuuuuu
    ybbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
    2022-05-21 08:39:42下载
    积分:1
  • 免费的Delphi控件,可以替代BDE,直接访问.dbf
    免费的Delphi控件,可以替代BDE,直接访问.dbf数据库-Free Delphi ActiveX component,replace BDE and direct access .dbf database
    2022-02-28 19:39:01下载
    积分:1
  • 普里姆算法求最小生成树(邻接表存储),用c++描写的,中的...
    普里姆算法求最小生成树(邻接表存储),用c++描写的,数据结构中的-Prim algorithm for minimum spanning tree (adjacent table storage), with c++ description, data structure
    2022-02-06 07:06:49下载
    积分:1
  • prepared by the Stoc k software, use Shenglong 6 (DOS) for more information.
    我用VFP编写的选股软件,要用胜龙6(DOS)的数据.-prepared by the Stoc k software, use Shenglong 6 (DOS) for more information.
    2022-08-20 20:43:07下载
    积分:1
  • 希尔和归并排序,基于的相关知识。
    希尔和归并排序,基于数据结构的相关知识。-Hill and merge sort, based on the data structure knowledge.
    2022-02-24 10:56:55下载
    积分:1
  • 编写自己的代码小,没有调试周前
    编写我们自己的miniSQL代码,几周前没有调试
    2022-05-18 12:43:07下载
    积分:1
  • 中国地图行政区域划分
    题目一 中国行政区域图染色与信息查询   p 设计目的:掌握图的存储结构与基本算法,通过解决较复杂的基于图模型的实际问题,提高学生对数据结构知识综合运用的技能与实践能力。 p 设计内容:设计有效的逻辑数据结构与存储结构表示中国各行政区域的有关信息(如省会城市名,电话区号,人口数,地理位置等)及行政区域间的相邻关系、省会城市间的距离;分析与设计有效的算法对行政区域图进行染色,使每个行政区域染一种颜色且相邻的省份染不同颜色,而总的颜色数最少;另外如在全国省城之间建立通信网,构造费用最低的通信线路铺设方案。 p 设计要求: ⑴从互联网或相关资料获取可靠的行政区域及其地理数据,有关数据与信息以文件形式存储,用无向网建模上述问题并以文件保存。 ⑵界面上能够显示与输出求解结果,具有对各省份相关信息的查询功能。对主要算法进行理论复杂度分析,并实测其执行效率。 ⑶在界面设
    2022-02-28 20:50:30下载
    积分:1
  • 696518资源总数
  • 106155会员总数
  • 8今日下载