搜索资源列表
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
Source_Code_Stack_implementation_with_array
- Stack implementation with array this code is basically to Pop and Push an item in stack with the help of array -Stack implementation with array this code is basically Pop and Push to an item in stack with the help of array
stack
- 用c++实现了一个比较特殊的堆栈类,可以push,可以pop,输出测试栈顶指针的变化。
qishiyoulidama
- 算法思想: 用一个二维的数组stack[36][3]充当栈的作用,用来记录36个位置的行,列,以及方向.设置全程标量top,用来指向当前位置.用push()和pop()函数分别实现压栈和出栈. start()函数则是具体实现骑士周游算法的函数.具体思想见注释.
stack.rar
- 用栈实现算式的运算,通过把操作符压栈和操作符的优先级进行运算。,Formula used to achieve the computing stack, push through the operator and operator to operator priority.
comb
- 一、 程序作用 实现排列组合功能。 例如:如果允许出现的数字为1 2 3 4 ,每个组合有3个元素,则输出的组合为 (1 2 3) (1 2 4) (1 3 4) (2 3 4) 二、 算法实现 采用栈的思想,首先输入第一个组合(1 2 3…..r) 如果r<n,则r弹栈,把r=r+1压栈,如果r=n,则r弹栈,同时把前一项也弹栈,再依次增加,直到出现组合 (n-r+1 n-r+2 ….n). -First, procedures for the functi
huichang2
- 会场安排,使用了3个向量存储开始时间和结束时间和两个时间的合并,并且排好了序。 用一个栈模拟活动的进行,压栈代表需要新开一个活动,出栈表示有一个活动结束-The venue arrangements, the use of three vectors stored start time and end time and the time the merger of the two, and lined up the sequence. With a stack simulation acti
zhsy
- //定义栈的存储结构 typedef struct StackNode { ElemType data //存放数据 struct StackNode * next //指向下一个结点 }StackNode typedef struct { StackNode * top // 栈顶指针 }LinkStack 实现下列操作: void InitStack(LinkStack &S) // 栈的初始化 void
HP
- 一、常用指令 1. 通用数据传送指令. MOV 传送字或字节. MOVSX 先符号扩展,再传送. MOVZX 先零扩展,再传送. PUSH 把字压入堆栈. POP 把字弹出堆栈. -First, a commonly used commands. Generic data transfer instructions. MOV to send word or byte. MOVSX first sy
adt_stack
- 栈是允许在同一端进行插入和删除操作的特殊线性表。允许进行插入和删除操作的一端称为栈顶(top),另一端为栈底(bottom);栈底固定,而栈顶浮动;栈中元素个数为零时称为空栈。插入一般称为进栈(PUSH),删除则称为退栈(POP)。 栈也称为后进先出表(LIFO表)。-Create stack Push stack Pop stack Stack top Empty stack Full stack Stack count Destroy stack
stack
- C++实现的各种堆栈操作(完整版 包括:build push pop等)-stack operation
stack
- 使用C语言实现数据堆栈功能,数据类型可自定义,pop,push操作性能较好-Data stack using the C language functions, data types can be customized, pop, push the operational performance is better
stack
- 栈的基本操作,压栈,出栈,初始化以及判定栈是否为空-The basic operation of the stack, push, stack, initialization, and to determine whether the stack is empty
stack
- 基本的栈操作,初始化,pop,push,设置空等-stack operate
VC.push.stack.design.code
- VC堆栈推开发设计经典代码VC to push development of stack design classic code -VC to push development of stack design classic code
myStack
- 自己写的一个stack类 push pop max min操作均为O(1)复杂度-Himself wrote a stack push pop max min operation are O () complexity
Stack
- 堆栈实现。堆栈就是这样一种数据结构。它是在内存中开辟一个存储区域,数据一个 顺序地存入(也就是“压入——push”)这个区域之中。有一个地址指针总指向最后一个压入堆栈的数据所在的数据单元,存放这个地址指针的寄存器就叫做堆栈指示器。开始放入数据的单元叫做“栈底”。数据一个一个地存入,这个过程叫做“压栈”。在压栈的过程中,每有一个数据压入堆栈,就放在和前一个单元相连的后面一个单元中,堆栈指示器中的地址自动加1。读取这些数据时,按照堆栈指示器中的地址读取数据,堆栈指示器中的地址数自动减 1。这个过程叫
STACK
- 用C语言编写的堆栈接口,适用于各种环境,提供接口: STACK *initStack(int MaxRoom) void destroyStack(STACK **spp) void resetStack(STACK *sp) Boolean isStackEmpty(STACK stack) Boolean isStackFull(STACK stack) Boolean push(STACK *sp, USER_TYPE data) Boolean p
push
- 完整地描述了数据结构中的进栈过程:在堆栈中,用户只能在指定的一端插入和删除元素,因此具有后进先出(LIFO)的特性;在队列中,用户只能在一端插入元素而在另一端删除元素,因此呈现先进先出(FIFO)的特性。从数据结构角度看,它们都是线性结构。 -A complete descr iption of the data structure into the stack process: in the stack, users can insert and delete elements at on
stack
- 建立一个stack,可以pop push delete stack里面的characters,同时可以检测stack是否为空或者已满-The establishment of a stack, you can pop push delete stack inside the characters, and can detect whether stack is empty or full