-
数据结构堆栈之后缀表达式求值
此程序用的是后缀表达式求值的方法,其中用到了一个栈,而中缀表达式求值需用到两个栈(操作数栈和操作符栈),所以阅读程序前提是了解中缀表达式和后缀表达式
之间的转换,和后缀表达式求值的过程。关于他们之间的转换,我的概括为:中缀表达式: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
-
development environment : c builder6.0 SQL server
开发环境:c++builder6.0 SQL server2-development environment : c builder6.0 SQL server
- 2022-03-11 18:31:07下载
- 积分:1
-
sql的语言手册下一部分
sql的语言手册下一部分-sql language under part Manual
- 2023-06-09 00:35:04下载
- 积分:1
-
简单的迷宫程序,是基本的数据结构入门程序,适合初学者学习...
简单的迷宫程序,是基本的数据结构入门程序,适合初学者学习-A simple maze procedure, is the basic data structure entry procedures
- 2023-01-06 22:25:04下载
- 积分:1
-
哈夫曼树的建立,haffman 编码,在turbo c 下运行
哈夫曼树的建立,haffman 编码,在turbo c 下运行-Huffman Tree, haffman encoding, turbo c in the run
- 2022-04-26 16:02:39下载
- 积分:1
-
很适合初学者《数据结构实验与实训教程》(PDG).zip
很适合初学者《数据结构实验与实训教程》(PDG).zip- Suits the beginner very much "Construction of data Experiment
And Really Teaches Course" (PDG) zip
- 2022-08-03 23:15:19下载
- 积分:1
-
data structure is the basis for programming, which in this case is I wrote the e...
数据结构是编程的基础,本例是本人写的八个基本数据结构的实现方法,用C语言编写,在VC中调试成功,并带有少量的注释,有兴趣的可以研究一下。我在里面尽量使用了指针-data structure is the basis for programming, which in this case is I wrote the eight basic data structure of the method, using C language, in VC debugging success, and with a small amount of the Notes may be interested in the study. I try to make full use of a guideline
- 2022-02-01 17:18:53下载
- 积分:1
-
旅游管理系统1分为12类模块,4个模块,一个VB…
旅游管理系统一共分12个类模块,4个模块,一个VB开发的旅游信息管理系统,很完整使用-Travel Management System 1 is divided into 12 categories module, 4 modules, a VB development of tourism information management system, it is full access! ! !
- 2022-01-24 16:29:27下载
- 积分:1
-
循环吗的C语言实现
循环吗的C语言实现-cycle? C Language
- 2023-06-04 21:45:03下载
- 积分:1
-
数据结构的基本操作:顺序队列的初始化、销毁、入队、出队基本操作的实现...
数据结构的基本操作:顺序队列的初始化、销毁、入队、出队基本操作的实现-The basic operation of the data structure: the order of the queue initialization, destruction, into the team, out of the realization of basic operations team
- 2022-01-28 08:45:48下载
- 积分:1