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

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

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

  • b tree how to operate on b tr
    b tree how to operate on b tr-b tree how to operate on b tr
    2023-06-08 16:20:04下载
    积分:1
  • 赫夫曼树(课设)
    通过输入一串英文(权值)来构建赫夫曼树,并在当前目录下打印赫夫曼图像
    2023-06-20 23:05:05下载
    积分:1
  • 使用powerbuilder开发的小型图书店系统。请查阅!
    使用powerbuilder开发的小型图书店系统。请查阅!-Use PowerBuilder to develop small-scale map Bookstore. Please check!
    2022-03-18 07:27:03下载
    积分:1
  • 汉诺塔代码,从第一个木桩中,把所有盘子从大到小搬移到第三个木桩中....
    汉诺塔代码,从第一个木桩中,把所有盘子从大到小搬移到第三个木桩中.-HANOR code from a wooden blocks, all the dishes to the smallest movement pickets were third.
    2022-03-07 10:56:03下载
    积分:1
  • 密码:yfq 物流管理插件 物流管理系统-插件
    密码:yfq 物流管理插件 物流管理系统-插件-Password: yfq logistics management Logistics Management System plug-ins- Plug-ins
    2022-02-01 18:02:18下载
    积分:1
  • Used VC++ 6.0+ Ado development apart from the basic to the additions and deletio...
    采用VC++6.0 + Ado开发 除了基本的增删改之外,还有以下特色 **可以直接将照片存于数据库,不必担心因为系统路径改变导致的更改。 **支持简单查询,模糊查询和精确查询和多种排序功能。 **双击左侧列表即可进行更改,右键保存。 **系统界面美观。 屏幕分辨率:1024*768 效果最佳 有需要源代码的朋友,通过电子邮件与本人联系。 Email:linchangcheng007@163.com 进一步了解本人相关作品,请访问本人的Blog。 Blog: http://blog.csdn.net/linchangcheng007/ 花了几天时间做的东东。对于VC开发,数据库开发入门来说很不错的。-Used VC++ 6.0+ Ado development apart from the basic to the additions and deletions, there are the following features can be directly** photos stored in the database without having to worry about because the system led to changes in the path of change.** Support a simple query, fuzzy query and precise queries and a variety of sorting functions.** Double-click the list on the left you can make changes, right-preservation.** System Interface beautiful. Screen Resolution: 1024* 768 best source code need to have a friend by e-mail with my contact. Email: linchangcheng007@163.com to learn more about my work-related, please visit my Blog. Blog: http://blo
    2022-06-22 05:53:17下载
    积分:1
  • Visual C+++ SQL Server database development and an accompanying source code exam...
    Visual C++ +SQL Server数据库开发与实例一书所附源代码-Visual C+++ SQL Server database development and an accompanying source code examples of
    2023-09-06 23:05:04下载
    积分:1
  • 基于十进制的四叉树的空间数据结构编码。 利用行数和列数求莫顿码 利用莫顿码求行数和列数...
    基于十进制的四叉树的空间数据结构编码。 利用行数和列数求莫顿码 利用莫顿码求行数和列数-Decimal-based quadtree spatial data structure coding. To use the number of rows and columns seeking Morton Morton yards yards seeking to use the number of rows and columns
    2023-05-14 16:10:03下载
    积分:1
  • VC下的ADO编程封装类。可灵活方便的应用于VC下的ADO编程
    VC下的ADO编程封装类。可灵活方便的应用于VC下的ADO编程-VC under the category ADO programming package. Flexibility can be applied to the VC under the ADO programming
    2022-06-12 20:17:38下载
    积分:1
  • 火车站购票系统
    资源描述C++写的购票系统,可以实现查询车次信息,购票,退票等功能,车次信息是提前预定好的,可以自己修改,考虑到了多个站点以及发车时间问题,解决了购票冲突问题,即在不同车站买到同一个座位上的车票。
    2022-03-28 19:05:10下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载