代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/130200/14203700
cpp bo3-1.cpp
// bo3-1.cpp 顺序栈(存储结构由c3-1.h定义)的基本操作(9个)
void InitStack(SqStack &S)
{ // 构造一个空栈S
if(!(S.base=(SElemType *)malloc(STACK_INIT_SIZE*sizeof(SElemType))))
exit(OVERFLOW); // 存储分配失败
S.top
www.eeworm.com/read/127962/14324306
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/127961/14324712
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/123878/14607681
cpp stack.cpp
//使用前应定义SElemType
#include
#include "preDefine.h"
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
typedef struct
{
SElemType *base;
SElemType *top;
int stacksize;
www.eeworm.com/read/123877/14607693
cpp stack.cpp
//使用前应定义SElemType
#include
#include "preDefine.h"
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
typedef struct
{
SElemType *base;
SElemType *top;
int stacksize;
www.eeworm.com/read/123876/14607701
cpp stack.cpp
//使用前应定义SElemType
#include
#include "preDefine.h"
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
typedef struct
{
SElemType *base;
SElemType *top;
int stacksize;
www.eeworm.com/read/123874/14607766
cpp stack.cpp
//使用前应定义SElemType
#include
#include "preDefine.h"
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
typedef struct
{
SElemType *base;
SElemType *top;
int stacksize;
www.eeworm.com/read/222762/14675199
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/222762/14675211
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/222762/14675213
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