-
数据结构堆栈之后缀表达式求值
此程序用的是后缀表达式求值的方法,其中用到了一个栈,而中缀表达式求值需用到两个栈(操作数栈和操作符栈),所以阅读程序前提是了解中缀表达式和后缀表达式
之间的转换,和后缀表达式求值的过程。关于他们之间的转换,我的概括为:中缀表达式:a*(b+c)-d/f ,先做b+c,即bc+;再做a*(b+c),即abc+*;然后做d/f,即df/;
最后做a*(b+c)-d/f,得abc+*df/-。关于后缀表达式求值过程请参照你的《数据结构指导书》P60~62(下文所指参照页均在此书)。程序里中有些我说的可有可无的东西,我已经说明
程序里只给出了+ - * / 四种运算,其它运算符若需要,
可向程序里插入。你的指导书堆栈实验里提示用到了“运算符重载”,所以添加其他运算时,有可能用到重载,但这里的四则运算我没用到,运算符重载是很重要的
- 2022-11-10 19:15:04下载
- 积分:1
-
A used c++ Realize the minimum spanning tree of the source code, and they hope t...
一个用c++实现的最小生成树的源代码,希望对大家有所帮助哈-A used c++ Realize the minimum spanning tree of the source code, and they hope to help everyone Kazakhstan
- 2023-07-08 02:10:03下载
- 积分:1
-
学生运动会成绩数据库
学生运动会成绩数据库系统记录某校运动会上全部运动项目,各系获得的分数及排名的情况,包括50、100、200,400,1500米,跳高,...
学生运动会成绩数据库
学生运动会成绩数据库系统记录某校运动会上全部运动项目,各系获得的分数及排名的情况,包括50、100、200,400,1500米,跳高,跳远,标枪,铅球铁饼等。进入系统后可以输入和修改某个项目的结果情况,可以按各系院编号输出总分;按总分排序;按男团体总分排序 ;按系院编号查询;按项目编号查询;按女团体总分排序。-Student Games Student Games results database performance database system for recording all the games of a school sports scores and faculty rankings, including 50,100,200,400,1500 meters, high jump, long jump, javelin, shot put discus and so on. After entering the system can enter and modify the outcome of a project can be output by each department Total Number of Hospitals by sorting scores male groups by sorting scores by the Department of Hospital No. inquiries by Item Number inquiries by women groups Total sort.
- 2022-06-30 13:53:12下载
- 积分:1
-
有向图的强连通的分量的实现
有向图的强连通的分量的实现-directed graph strongly connected component of the realization
- 2022-07-12 23:43:45下载
- 积分:1
-
C语言数据结构知识原代码
C语言数据结构知识原代码C语言数据结构知识原代码...
C语言数据结构知识原代码
C语言数据结构知识原代码C语言数据结构知识原代码-C language data structure knowledge of the original code C language data structure knowledge of the original code C language data structure knowledge of the original code
- 2023-08-24 03:20:03下载
- 积分:1
-
数据结构课程设计,用C语言编写的约瑟夫环
数据结构课程设计,用C语言编写的约瑟夫环-data structure course design, preparation of the C language Josephus
- 2023-03-28 01:50:04下载
- 积分:1
-
PB中的PFC使用例程,包含精简PFC类库
PB中的PFC使用例程,包含精简PFC类库-PB PFC use routines, including streamlining the PFC
- 2023-04-22 16:30:03下载
- 积分:1
-
数据结构中的AVL TREE的实现
数据结构中的AVL TREE的实现-data structure of the realization of AVL TREE
- 2022-03-14 23:10:35下载
- 积分:1
-
图函数,实现插入,删除,保存,恢复等功能
图函数,实现插入,删除,保存,恢复等功能-Map function, the realization of insert, delete, save and restore functions
- 2022-05-24 06:30:59下载
- 积分:1
-
本程序详细 演示了 vc如何连接数据库,对学习mysql与vc++ 有很大帮助...
本程序详细 演示了 vc如何连接数据库,对学习mysql与vc++ 有很大帮助-This procedure demonstrated in detail how to connect vc database mysql and studying vc++ has a lot to help
- 2023-09-01 18:50:04下载
- 积分:1