登录
首页 » c++ » 用栈写的运算表达式,可判断运算符优先级

用栈写的运算表达式,可判断运算符优先级

于 2022-02-05 发布 文件大小:1.61 kB
0 148
下载积分: 2 下载次数: 1

代码说明:

1. 问题描述     表达式计算是实现程序设计语言的基本问题之一,也是栈的应用的一个典型例子。设计一个程序,演示用算符优先法对算术表达式求值的过程。 2. 基本要求 以字符序列的形式从终端输入语法正确的、不含变量的整数表达式。实现对算术四则混合运算表达式的求值。 用法:输入运算表达式,以‘#’结尾

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • LUZHOUYUE
    今天,小 G 已了解到修理厂共有 m 种不同的修理原料,对于第 i 种原料,可以对任意一个石桥的美化度增加 di,当然这也需要花费 hi 的费用。由于发货场的修理原料有限,对于任意一种修理原料,只有一件,也就是说小 G 只能选择购买和不购买,对于第 i 种修理材料能成功修理第 j 个石桥的条件是:当且仅当 hi ≥ pj,di ≥ vj。现在,已知这 n 个石桥修理的最小花费值,最小美化需求度,以及 m 种修理原料的费用,可对石桥增加的美化度值,请你帮助小 G 完成这个修理任务。(Today, Xiao G has learned that there are m different repair materials in the repair shop. For the first material, Di can be added to the beautification of any stone bridge. Of course, it also costs hi. Because of the limited repair materials in the delivery yard, there is only one repair material for any kind of repair material, that is to say, small G can only choose to buy or not to buy. For the first repair material, the condition for successful repair of the jth stone bridge is: if and only if hi is greater than pj, Di is greater than vj. Now, the minimum cost of repairing n stone bridges, the minimum demand for beautification, and the cost of m kinds of repairing materials are known, which can increase the beautification value of stone bridges. Please help Xiao G to complete this repairing task.)
    2020-12-05 13:29:23下载
    积分:1
  • Cp23_WinForm.chp5.thread
    C#_WinForm实践开发教程》chp5.多线程编程技术.ppt(The C# _WinForm practice development tutorial "chp5 multithreaded programming techniques. Ppt)
    2013-01-23 00:27:42下载
    积分:1
  • reactor
    C network reactor modal. use linux epoll. callback notify event.
    2013-11-28 12:18:34下载
    积分:1
  • Matlab-bianchengChinese
    说明:  matlab编程的中文版,非常珍贵的电子书!(Chinese version of matlab programming, e-books are very precious!)
    2008-08-29 20:18:43下载
    积分:1
  • cardSend-master
    使用SLE4442芯片的智能卡讀取軟件。 該軟件使用com連接實現數據連接和讀寫操作。(Smart card reading software using SLE4442 chip. This software enables data connection and read and write operations using com connection.)
    2020-06-19 04:00:01下载
    积分:1
  • 二维表
    二维表
    2013-07-01下载
    积分:1
  • PERI4-DM9000A
    基于FPGA的DM9000A芯片的网络数据采集系统,基于NIOS架构,c语言编程,资料齐全,包含不止5个源程序,绝对受用!(FPGA-based the DM9000A chip network data acquisition system based on NIOS architecture, c programming language, the information is complete, contains more than 5 source code is absolutely good enough!)
    2020-09-16 16:57:55下载
    积分:1
  • conlectioncontain
    界面编程,编写类似VC++6 0左边控件,需要CJLibrary610库,或CJLibrary609库(Interface programming, write something like VC++6 0 left control, need CJLibrary610 library, or CJLibrary609 library)
    2018-10-19 00:39:46下载
    积分:1
  • Optimal-Beamforming
    最优波束形成技术研究及硬件实现,适用于雷达和声呐方面(Optimal Beamforming technology research and hardware for radar and sonar terms)
    2020-10-14 15:27:31下载
    积分:1
  • If-Statement-Part2
    An if statement for C++
    2014-10-23 01:27:13下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载