搜索资源列表
桌面hhs
- int *base int *top int stacksize }sqstack inistack(sqstack &s) { s.base=(int*)malloc(stackintsize*sizeof(int)) if(!s.base) exit(-2) s.top=s.base s.stacksize=stackintsize return 1 }- int *base int *top i
车厢调度问题123
- 设计一个车厢调度的程序,输出所有可能的序列 假设停在铁路调度站入口处的车厢序列的编号依次为1,2,3,n , 设计一个程序,求出所有可能的长度为n 的车厢序列。 实现栈的顺序存储结构SqStack之上实现栈的基本操作,即实现栈类型。程序对栈的基本操作必须借助于基本操作进行。 测试数据取 n=1,2,3, 程序输出的结果应该在屏幕上显示出来-Designs the procedure which a compartment dispatches, the output all possible
sqstack
- 实现顺序栈的建立,删除,插入一个元素等基本操作-realize sqstack s basic function,such as insert a data,delete a data and so on.
123
- 一个简单的学生信息管理系统c语言程序,基本上应该有的功能都可以基本实现了-Students a simple information management system c language program basically should have the basic functions can be achieved
SqStack
- 这是我写一个stack的实现,其中有不同的算法用到了stack,希望能对学习数据的人有用,请注意 在vc下使用
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
1
- 中序遍历递归与非递归,很简单的代码,就是这么简单!-#include "stdio.h" #include"stdlib.h" #define MAXSIZE 20 typedef int datatype typedef struct Node { datatype data struct Node*lchild struct Node*rchild }Btnode,*Btree typedef struct {
SqStack
- 用C语言实现了顺序栈,包括创建栈、押栈、出栈等。-Using C language to implement the order of the stack, including the creation of the stack, charge stack, the stack and so on.
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
sqstack
- 以顺序栈为例,检查一个字符串是否是对称串,已通过测试-Stack, for example in order to check whether a string is the string symmetry, has been tested
SqStack
- 数据结构中栈的两个应用,进制转换和括号匹配-Data structure stack two application, hexadecimal conversion and matching brackets
SqStack
- 顺序栈的基本运算:初始化、遍历、插入、删除、取栈顶元素等-The basic sequence stack operations: initializing, traversal, insert, delete, and so on to take the top element
SqStack
- 栈的初始化、进栈、出栈、获取栈顶元素、清空栈、销毁栈,DOS窗口输入输出-Initialize the stack, the stack, the stack to get the top element, empty stack, stack destruction
