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

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

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

  • 运输中的应用
    此应用程序用于提供管理和维护运输设施。 这里是有用的代码,这种应用程序的执行。
    2023-06-11 18:35:04下载
    积分:1
  • Symbol Matching Program
    符号匹配问题编程-Symbol Matching Program
    2022-06-28 13:35:02下载
    积分:1
  • tree data structure source code
    树的数据结构源代码-tree data structure source code
    2022-04-24 00:57:22下载
    积分:1
  • Qinghua University, the data structure lectures, classic books, as the review no...
    清华大学的数据结构讲座,经典书籍,作为复习笔记,都可以
    2023-04-27 02:50:04下载
    积分:1
  • 一个用C++实现的B+tree程序源代码
    一个用C++实现的B+tree程序源代码-b+tree implemented with c++
    2022-12-28 20:50:08下载
    积分:1
  • 快餐管理系统 这个快餐管理系统,实现了实际库管理功能,能给相关开发的朋友提供很好的借鉴...
    快餐管理系统 这个快餐管理系统,实现了实际数据库管理功能,能给相关开发的朋友提供很好的借鉴 -The fast-food fast-food management system management system, the realization of the actual database management functions related to development can provide a very good friend from
    2022-07-15 19:05:20下载
    积分:1
  • 可以查找局域网中的SQLServer2000服务器
    可以查找局域网中的SQLServer2000服务器-can find the MS LAN server
    2023-04-04 23:00:03下载
    积分:1
  • 360度采样获取的仿真的投影
    360度采样获取的仿真的投影数据,可以通过它进程iradon变换直接获取切片锥形束CT模拟按:德山杨,博士 放射肿瘤学杂志华盛顿大学圣路易斯系,医学院, 电子邮件:dyang@radonc.wustl.edu 文件: compute_projections.m - 主程序,来计算所有投影和保存2D投影图像放到一个文件夹 compute_one_projection.m - 由主程序调用,以计算仅一个投影图像 straight_line_integral.m - 的核心功能,通过一个三维矩阵来计算线积分         很多行注释掉这个文件,因为该文件最初写         在MATLAB而已,laterly改写成C的速度提高。 straight_line_integral_inner.c - 这是在C从straight_line_integral.m什么改写 sort_ts1_ts2.c - 一个效用函数两个有序数组合并为一个有序数组。         它是用C语言编写,以提高速度  create_CSV_file_for_OSCaR.m - 要创建一个用于奥斯卡CBCT重建的CSV文件         (http://www.cs.utoronto.ca/~nrezvani/OSCaR.html)         然而,奥斯卡不支持保存垫子数据文件,而无需修改。         我有修改奥斯卡功能。       
    2022-02-05 09:07:50下载
    积分:1
  • 图的应用,二叉树的应用与操作为题目的课程设计。有详细的文字说明和源代码。...
    图的应用,二叉树的应用与操作为题目的数据结构课程设计。有详细的文字说明和源代码。-Map applications, application and operation of a binary tree data structure for the subject curriculum design. A detailed written instructions and source code.
    2023-05-24 18:30:03下载
    积分:1
  • 一个介绍Odbc的详细例子,看后,受益颇多。
    一个介绍Odbc的详细例子,看后,受益颇多。-introduced a detailed examples, see, a lot of benefit.
    2022-08-11 20:43:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载