代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/366495/9811770
h c3-1.h
// c3-1.h 栈的顺序存储表示
#define STACK_INIT_SIZE 10 // 存储空间初始分配量
#define STACKINCREMENT 2 // 存储空间分配增量
struct SqStack
{
SElemType *base; // 在栈构造之前和销毁之后,base的值为NULL
SElemType *top; // 栈顶指针
www.eeworm.com/read/364713/9897612
cpp initstack.cpp
//InitStack.cpp
//This program is to initialize a stack
# include
# include
# include
# define STACK_INIT_SIZE 100
# define STACKINCREMENT 10
# define OK 1
#
www.eeworm.com/read/364713/9897621
cpp gettop.cpp
//GetTop.cpp
//This program is to get the top element of SqStack
# include
# include
# include
# define STACK_INIT_SIZE 100
# define STACKINCREMENT 10
# define
www.eeworm.com/read/364713/9897622
cpp push.cpp
//Push.cpp
//This program is to Push SqStack
# include
# include
# include
# define STACK_INIT_SIZE 100
# define STACKINCREMENT 10
# define OK 1
# define ERRO
www.eeworm.com/read/364713/9897626
cpp pop.cpp
//Pop.cpp
//This program is to Pop SqStack
# include
# include
# include
# define STACK_INIT_SIZE 100
# define STACKINCREMENT 10
# define OK 1
# define ERROR
www.eeworm.com/read/166053/10039273
h c3-1.h
/* c3-1.h 栈的顺序存储表示 */
#define STACK_INIT_SIZE 10 /* 存储空间初始分配量 */
#define STACKINCREMENT 2 /* 存储空间分配增量 */
typedef struct SqStack
{
SElemType *base; /* 在栈构造之前和销毁之后,base的值为NULL */
SElemT
www.eeworm.com/read/165769/10051986
cpp bo3-1.cpp
Status InitStack(SqStack &S)
{
if(!(S.base=(SElemType*)malloc(STACK_INIT_SIZE*sizeof(SElemType))))
exit(OVERFLOW);
S.top=S.base;
S.stacksize=STACK_INIT_SIZE;
return OK;
}
Status Dest
www.eeworm.com/read/165769/10051988
h c3-1.h
#define STACK_INIT_SIZE 10
#define STACKINCREMENT 2
struct SqStack
{
SElemType *base;
SElemType *top;
int stacksize;
};
www.eeworm.com/read/165768/10051990
cpp test2.cpp
#include"head.h"
#include
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
Status InitStack(SqStack &S){
//初始化栈
S.base=(BiTree *)malloc(STACK_INIT_SIZE * sizeof(BiTree));
www.eeworm.com/read/359985/10112733
h def.h
//Def.h
#include
#include
#include
#include
#include
#define TRUE 1
#define FALSE 0
#define OK 1
#define ERROR 0
#define INFEASIBLE -1
t