-
in learning the application stack, it is a very typical example is the train com...
在学习堆栈的应用时,有一个很典型的例子,就是火车车厢的重排问题,该程序就是针对这个做了一个简单的MFC模拟程序-in learning the application stack, it is a very typical example is the train compartments, the rearrangement, The procedure is to address this and make a simple MFC simulation program
- 2022-12-09 16:45:03下载
- 积分:1
-
计算行列式。完成矩阵的计算
关于行列式的计算.可以完成矩阵的有关计算-determinant of the calculation. To complete the calculation of the matrix
- 2022-03-05 21:39:00下载
- 积分:1
-
数据结构堆栈之后缀表达式求值
此程序用的是后缀表达式求值的方法,其中用到了一个栈,而中缀表达式求值需用到两个栈(操作数栈和操作符栈),所以阅读程序前提是了解中缀表达式和后缀表达式
之间的转换,和后缀表达式求值的过程。关于他们之间的转换,我的概括为:中缀表达式: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
-
B-树的创建、插入、删除等一系列操作!-B-tree creation, insert, delete a series of manipulations!
- 2022-07-19 17:19:24下载
- 积分:1
-
ShannonFano实现
ShannonFano实现-achieve ShannonFano
- 2022-07-15 22:14:15下载
- 积分:1
-
一个基于VC+ACCESS的通讯录系统设计,简单方便
一个基于VC+ACCESS的通讯录系统设计,简单方便-a VC-based directories ACCESS system design is simple and convenient
- 2022-06-17 08:17:54下载
- 积分:1
-
用Java写的面相对象的数据库管理系统
用Java写的面相对象的数据库管理系统- Appearance object database management system writes which with
Java
- 2023-07-10 17:20:03下载
- 积分:1
-
conversion matrix can be realized, helical array, digital mobile array operation...
可实现矩阵转换,螺旋数组,数字移动,数组操作,桶排序,杨辉三角形-conversion matrix can be realized, helical array, digital mobile array operation, barrels, in order of Yang Hui triangle
- 2022-02-01 06:41:21下载
- 积分:1
-
题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。
概要设计
1、顺序扫描中缀算术表达式,当读到数字时直接将其送至输出队列中;
2、当读到...
题目:设计一个题目,演示用算符优先法对算术表达式求值的过程。
概要设计
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
- 2022-03-18 20:45:34下载
- 积分:1
-
Shortest Path 2 is the data structure of knowledge but the procedures are a litt...
最短路径2 是有关数据结构的知识 但是程序稍稍有一个小小的失误-Shortest Path 2 is the data structure of knowledge but the procedures are a little bit errors
- 2023-01-02 17:10:03下载
- 积分:1