-
数据结构堆栈之后缀表达式求值
此程序用的是后缀表达式求值的方法,其中用到了一个栈,而中缀表达式求值需用到两个栈(操作数栈和操作符栈),所以阅读程序前提是了解中缀表达式和后缀表达式
之间的转换,和后缀表达式求值的过程。关于他们之间的转换,我的概括为:中缀表达式: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
-
代码名称:The alxBase classes for work with dbf files 代码说明:读写DBF文件的类 工具/平台:VC Win2...
代码名称:The alxBase classes for work with dbf files 代码说明:读写DBF文件的类 工具/平台:VC Win2-code name:The alxBase classes for work with dbf files. code specification: a class for reading DBF files.
- 2022-01-22 10:59:54下载
- 积分:1
-
huffman编码
给定信源符号概率,自动huffman编码,建立二叉树,打印符号编码,还可打印二叉树的外形,对于数据结构二叉树一节的学习很有帮助。
- 2023-03-03 15:40:03下载
- 积分:1
-
oracle OCI 数据类封装
1.oracle OCI 数据类封装 支持linux windows 2.通过封装不同类驱动
- 2022-06-20 12:01:26下载
- 积分:1
-
成绩分析系统 可分析学生几个学期以来的学习状况
成绩分析系统 可分析学生几个学期以来的学习状况-performance analysis system can be analyzed several students since the semester learning
- 2023-06-25 08:40:03下载
- 积分:1
-
A detailed book information management system, including storage, a library, que...
一个详实的图书信息管理系统,包括入库、出库,查询等功能模块,和一个简单的系统帮助文件。-A detailed book information management system, including storage, a library, query, such as function modules, and a simple system to help document.
- 2023-04-24 02:05:06下载
- 积分:1
-
一个很好的员工信息管理系统
一个很好的员工信息管理系统-a good staff information management system
- 2022-04-01 21:41:11下载
- 积分:1
-
ACESS数据库使用时间长了之后,数据库文件后变得越来越庞大,本程序里的函数可以实现对ACESS进行压缩
另外,当机器突然断电,可能对DB造成损坏,该函数...
ACESS数据库使用时间长了之后,数据库文件后变得越来越庞大,本程序里的函数可以实现对ACESS进行压缩
另外,当机器突然断电,可能对DB造成损坏,该函数也可实现修复-Acess database to use a long time after the database file after becoming increasingly large, the program can realize the function of Acess to compress the other hand, when a sudden power failure the machine may cause damage to DB, this function can also realize Repair
- 2022-05-14 17:27:34下载
- 积分:1
-
STL算法实现的大整数加减法的程序, 能够进行正负数的加减,而且是动态数组的, 因此可以无限输入,这是本人这学期的大作业
STL算法实现的大整数加减法的程序, 能够进行正负数的加减,而且是动态数组的, 因此可以无限输入,这是本人这学期的大作业-STL algorithms and the largest integer addition and subtraction procedures, plus or minus a few to carry out addition and subtraction, but is a dynamic array, it can be unlimited importation, this is my semester of this operation
- 2022-01-25 17:57:43下载
- 积分:1
-
数据结构哈夫曼实习报告
数据结构哈夫曼实习报告-data structure Huffman internship report
- 2022-07-14 01:34:53下载
- 积分:1