代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/294924/8192871
h stack.h
#include
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
#define ERROR -1
#define OK 0
typedef int Status;
typedef int Elemtype;
typedef struct{
Elemtype *base;
www.eeworm.com/read/293882/8266617
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/392980/8317365
txt 栈的操作.txt
///////////////////////////////////////////////
// 作者:03031A班 李戬 //
// //
// 2003年 xx月 xx日 晚 //
///////////////////////////////////////////////
#include
#i
www.eeworm.com/read/392789/8325960
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/392276/8353464
h 栈.h
#include
using namespace std;
#define STACK_INIT_SIZE 100
#define STACKINCREMENT 10
#define ERROR 0
#define OK 1
#define TRUE 1
#define FALSE 0
#define OVERFLOW -2
typedef i
www.eeworm.com/read/369421/9649007
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/369421/9649016
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/369421/9649018
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/369421/9649024
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/173560/9651064
h c3-1.h
/* c3-1.h 栈的顺序存储表示 */
#define STACK_INIT_SIZE 10 /* 存储空间初始分配量 */
#define STACKINCREMENT 2 /* 存储空间分配增量 */
typedef struct SqStack
{
SElemType *base; /* 在栈构造之前和销毁之后,base的值为NULL */
SElemT