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

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

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

  • 在机票预订系统项目的前一阶段,这是一个总
    在本机票预定系统项目的前一阶段,也就是概要设计阶段中,已经将系统用户对本系统的子模块功能做了详细的阐述,这些模块功能具体设计将在本报告中详尽得以叙述及阐明。 本阶段已在系统的概要设计的基础上,对机票预定系统做详细设计。主要解决了实现该系统程序模块具体设计问题。包括确定算法,数据结构,模块接口的使用,数据库的动态操作以及界面设计等。在以下的概要设计报告中将对在本阶段中对系统所做的所有详细设计进行详细的说明。 -In the ticket reservation system project in the previous phase, which is a summary of the design phase, the system user has a subset of the system modules have done a detailed, specific design features of these modules will be detailed in this report can be described and explained . This phase of the outline design of system based on air ticket reservation system do the detailed design. The main solution to the achievement of specific program modules of the system design issues. Including the identification of algorithms, data structure, the use of module interfaces, databases, dynamic operation, as well as interface design. In the following report will outline the design at this stage of the system has done all the detailed design detail.
    2022-05-10 20:51:54下载
    积分:1
  • 排课表,对于给定的课程及其先序关系,给出所需学期最少的排法。...
    排课表,对于给定的课程及其先序关系,给出所需学期数最少的排法。-Course Scheduling table, for a given sequence of courses and their relationship first, given at least the required number of semester scheduling method.
    2022-04-16 17:28:33下载
    积分:1
  • Data Structures and Program Design in C++ by Robert Kruse, Alexander Ryba 源代码
    Data Structures and Program Design in C++ 书中源代码 作者Robert Kruse, Alexander Ryba
    2022-06-26 14:38:38下载
    积分:1
  • 家族信息管理系统,实现人员的各信息管理
    家族信息管理系统,实现人员的各信息管理-family information management system, the members of the Information Management
    2023-08-13 07:55:03下载
    积分:1
  • 利用哈希函对学生姓名进行最优化查找 可选择从键盘输入和文件输入,需输入名字最大长度...
    利用哈希函数对学生姓名进行最优化查找 可选择从键盘输入和文件输入,需输入名字最大长度-hash function to the students find the most optimal choice from the keyboard input and the input document, name must be imported maximum length
    2022-01-31 06:43:53下载
    积分:1
  • 案例一 贪吃蛇游戏 案例二 计算器 案例三 黑白棋游戏 案例四 迷宫问题 案例五 扫地雷游戏 案例六 速算24 案例七 CAI系...
    案例一 贪吃蛇游戏 案例二 计算器 案例三 黑白棋游戏 案例四 迷宫问题 案例五 扫地雷游戏 案例六 速算24 案例七 数据结构CAI系统 案例八 进程调度 案例九 存储管理分区分配算法 案例十 通讯录 案例十一 学生成绩管理 案例十二 工资管理 案例十三 图书借阅管理 案例十四 教师工作量计算 -case a huge memory game two cases calculators Case 3 Case 4 game reversi maze problem cases five outbound mine sweeping Case 6 game speed count 24 cases seven CAI system data structure eight cases process scheduling nine cases storage management district allocation algorithm 10 cases of 11 cases of student directories performance management salaries 12 cases 13 cases of books to borrow 14 teachers Case Workload Calculation
    2022-02-27 08:34:35下载
    积分:1
  • 运动会分统计,我的课程设计,用c语言编写的,
    运动会分数统计,我的课程设计,用c语言编写的,-Games Score statistics, my curriculum design, with c languages,
    2023-04-08 07:55:03下载
    积分:1
  • c++版程序
    数据结构c++版程序-data structure c editions
    2022-01-26 03:38:31下载
    积分:1
  • 魔王语言解释程序 请大家多多支持 实验
    魔王语言解释程序 请大家多多支持 数据结构实验-fiendish language interpreter please the generous support of experimental data structure
    2022-06-30 15:10:10下载
    积分:1
  • 先验频繁项集挖掘
    这是 apriori 算法的数据挖掘工具。 c# 和.NET 2.0,很容易理解,您可以重写它,使它更有效率。
    2022-04-02 06:52:46下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载