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

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

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

  • 课程设计,指针,连表等等的应用.属于基础知识
    数据结构课程设计,指针,连表等等的应用.属于基础知识 -Curriculum design data structure, pointer, and even the application form and so on. Belong to the basic knowledge
    2022-03-23 18:22:46下载
    积分:1
  • 二手管理系统
    学生每个校园有很多闲置的资源无法得到充分利用,本文基于C2C交易平台的设计和开发程序中的校园网。该系统采用数据库和ASP技术,从需求分析,数据库设计,维护,界面设计等几个方面,设计并实现了用户注册,产品管理,广告管理,购买出售等基本功能。平台可以通过商品的陈列来完成,购买信息,商品交易,留言板,公告板等的释放。学生可以注册登录购买自己的平台,他们需要出售的物品或物品。该系统的开发为交易同学之间建立了一个互动的平台,以满足学生之间的交易的需求,极大地方便了交易活动在校园里,节省了人力和物力。
    2022-03-14 15:27:11下载
    积分:1
  • 与清华大学版的《》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H...
    与清华大学版的《数据结构》匹配二叉树的实现:BITREE1.CPP:为主程序,其中实现了递归算法以及非递归算法的前序遍历,中序遍历,后序遍历。TSTACK1.H: 为头文件,其中定义了一些常量的值,其中也包括了书中第三章的栈的实现,只需要将注解符去掉即可。运行环境为:VC++6 或 TC3-and Tsinghua University version of the "data structure" matching the achievement of a binary tree : BITREE1.CPP : mainly procedures, which achieved a recursive and non- recursive algorithm of algorithms preorder, preorder, after preorder. TSTACK1.H : for the first document, which defines a number of the value of a constant, which also include a third chapter of the book stack the realization simply have the website notes can be removed. Operating environment : VC 6 or TC3
    2023-08-23 23:30:03下载
    积分:1
  • B超管理系统
    原创delphi开发的B超管理系统.WINDOWS下开发的B超图象管理系统MEDIWS系统,使用低成本视频图象采集卡及其驱动程序、新颖的JPEG压缩算法、完善的报告编辑环境等技术
    2023-04-26 01:05:06下载
    积分:1
  • library managment system
    图书馆
    2022-02-12 04:34:24下载
    积分:1
  • Dijkstra algorithm, can solve the graph theory in the shortest path between two
    Dijkstra算法,可以求解图论中两点之间的最短路径
    2022-01-21 05:12:31下载
    积分:1
  • 使用ADO的复制原型
    Data Replication Prototype Using ADO
    2022-07-22 16:45:33下载
    积分:1
  • 比较有用的源程序代码,各种功能函的实现
    数据结构比较有用的源程序代码,各种功能函数的实现-Data structure more useful source code, and a variety of performance function to achieve .............
    2022-08-21 17:21:03下载
    积分:1
  • 一个表达式求值样例程序,对于C++初学者很有帮助
    一个表达式求值样例程序,对于C++初学者很有帮助-a sample of expression evaluation,it will be helpful for C/C++ fresher
    2022-02-01 07:13:23下载
    积分:1
  • 一个微型的库系统
    一个微型的数据库系统--A mini database system
    2022-05-14 00:09:01下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载