搜索资源列表
EX25
- 编制一个算术表达式求值的程序 1)以字符序列的形式从终端输入表达式,实现对运算表达式的求值。 (2)演示在求值中运算符栈,运算数栈、输入字符和主要操作的变化过程。 (3)设置运算符栈和运算数栈辅助分析算符优先关系。 (4)在读入表达式的字符序列的同时,完成运算符和运算数的识别处理,以及 相应的运算。 (5)在识别出运算数的同时,要将其字符序列形式转换成整数形式。 -compiled an arithmetic expression for a value of the
sta
- 设当前系统中有多个栈在工作,多栈模拟问题要求模拟当前系统中各栈的工作状态。 由文件input.txt给出输入数据。第1行是正整数n,表示有n个栈操作。接下来的n行, 每行给出一个栈操作指令。栈操作指令“PUSH A B”表示将正整数B加入编号为A的栈顶; 栈操作指令“POP A”表示输出编号为A的栈顶元素输入文件示例 输出文件示例 input.txt output.txt 7 PUSH 1 100 PUSH 1 200 PUSH 2 300 PUSH 2 40
车厢调度问题123
- 设计一个车厢调度的程序,输出所有可能的序列 假设停在铁路调度站入口处的车厢序列的编号依次为1,2,3,n , 设计一个程序,求出所有可能的长度为n 的车厢序列。 实现栈的顺序存储结构SqStack之上实现栈的基本操作,即实现栈类型。程序对栈的基本操作必须借助于基本操作进行。 测试数据取 n=1,2,3, 程序输出的结果应该在屏幕上显示出来-Designs the procedure which a compartment dispatches, the output all possible
简单的链的倒置(c++)
- 给定一条单向链,设计程序把链倒过来,并输出结果。要求直接在这条链上完成倒置操作,只可增设有限的几个辅助变量。 用栈的方法。
zhan
- 通过对队列的入栈出栈实行的程序,数据结构栈的操作的实验-Through the queue stack a stack to implement the procedures, data structure stack operation experiment
stack
- 利用C#编写了一个可以模拟堆栈使用的小例子,其中包含出栈、入栈等基本操作。-The use of C# Prepared a stack can be simulated using a small example, which contains a stack, the basic operation入栈.
cSharp100Demon
- cSharp100个案例 锯齿型数组 重载 邮件提示器 邮件发送程序 透明窗口 进度条的使用 运动的球 菜单的使用 翻牌游戏 网页下载器 线程例子 线程休眠 类型转换 简易计算器 生成网页 添加控件 浮动的窗口 浏览图片 测试webserer 栈的操作 枚举的使用 构造函数 来抓我啊 显示系统字体 时钟的使用 旋转的秒针 方法重载 文件读写 文件夹内容搜索器 数组应用 支持
Track
- C#栈的操作,简单小程序,可做为参考使用.-C# stack operation, a simple small program, can be used as a reference.
shunxuzhan
- #define MAX 100 typedef int ElemType typedef struct{ ElemType*data int top } SqStack 顺序栈的基本操作,1,初始化建立空栈 2,入栈,3,显示所有的数据 4,退出 。有菜单栏,里面有word文档的运行结果显示-# define MAX 100 typedef int ElemType typedef struct (ElemType* data int top ) SqS
sizeyunsuan
- 以字符序列的形式从终端输入语法正确的、不含变量的整数表达式,利用给定的算符优先关系,实现对算术四则混合运算表达式的求值,并演示在求值过程中运算符栈、操作数栈、操作数栈和主要操作的变化过程。-In the form of a sequence of characters entered from the terminal grammatically correct, non-integer variable expressions using the operators given priorit
CarriageScheduling
- 假设停在铁路调度站(如教科书中图3.1(b)所示)入口处的车厢序列的编号依次为1,2,3,…,n。设计一个程序,求出所有可能由此输出的长度为n的车厢序列。 首先在教科书3.1.2节中提供的栈的顺序存储结构SqStack之上实现栈的基本操作,即实现栈类型。程序对栈的任何存取(即更改,读取和状态判别等操作)必须借助于基本操作进行。 -Railway Station stop scheduling assumptions (such as textbooks in 3.1 (b) below
zhan
- 定义顺序栈类型,实现栈的所有基本操作。 定义链栈类型,实现栈的所有基本操作。 应用栈实现数制的转换-Definition of the order of the stack type, to achieve all of the basic stack operations. Defined chain stack type, all the basic operations of the stack. Application stack to achieve the conversio
shiyan5
- 以二叉链表表示二叉树,实现二叉树先序遍历、中序遍历、后序遍历的递归算法;直接利用栈的基本操作,实现二叉树先序遍历的非递归算法。-Binary list, binary tree, Binary Tree, Inorder traversal, recursive algorithm after preorder direct use of the basic operation of the stack, the non-recursive algorithm Binary Tree.
shiyan2
- 运用栈实现表达式开、闭括号是否配对出现算法。先要实现栈的基本操作算法,包括初始化栈、进栈、退栈等。本程序中,表达式中的元素限定为char型,表达式的长度<100。表达式输入的为一个以“#”为结束标志的字符串。若用户输入的表达式中少了左括号或少了右括号,打印“括号不匹配”。若输入的表达式左右括号匹配,打印“括号匹配”。-Use stack to achieve expression open, close parenthesis pair appeared algorithm. The ne
stack
- 使用C++语言学习堆栈的概念,包括进栈与出栈的操作-Using c++ language learning is the concept of stack, including into the operation of the stack and the stack
cal
- 数据结构大作业中的一个选择,使用了栈等操作,简单易会。-It s Simple but also is very useful.
LINK_Stack_Queue
- 栈和队列 栈的概念,存储结构及其基本操作 队列的概念、存储结构及其基本操作 栈与队列的应用举例 -The concept of the stack stacks and queues, queue storage structure and its basic operation concept, structure and basic operation of the storage stack and queue Application examples
2
- 1、编写函数,实现顺序栈的各种基本操作(可从上一实验中直接获取); 2、编写函数,实现运算符的优先级处理; 3、编写函数,实现算术表达式的计算。 -1, write a function, the stack order to achieve a variety of basic operations (directly obtained from previous experiments) 2, write a function to achieve priority pro
2
- 1. 实现顺序栈的基本操作(初始化、判断栈空、判断栈满、入栈、出栈)。 1) 从键盘输入一系列整数,当输入值为0时,停止输入,产生顺序栈。 2) 实现入栈操作,输入需入栈的值,如入栈成功,显示“入栈成功!”,否则显示“入栈失败!”并说明失败原因。 3) 实现出栈操作,如出栈成功,显示“出栈成功!”,否则显示“出栈失败!”并说明失败原因。 4) 顺序栈中元素依次出栈,并显示 。 2. 实现循环队列的基本操作(初始化、判断队空、判断队满、入队、出队)。 1) 从键盘输入一
顺序栈的基本操作
- 编写一个程序实现顺序栈的各种基本运算,并在此基础上设计一个主程序完成如下功能:初始化顺序栈,插入元素,删除栈顶元素,取栈顶元素,遍历顺序栈,置空顺序栈。