代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/264905/11295085
cpp 112201.cpp
// suju.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include
#include
#include
#define STACK_INIT_SIZE 100
#define STACK
www.eeworm.com/read/264807/11300737
cpp stacktree.cpp
#include"StackTree.h"
int InitStack(SqStack &s){
s.base=(BiTree *)malloc(sizeof(struct BtNode));
if(!s.base){
printf("s.base malloc error in func InitStack\n");
exit(1);
}
s.top=s.base;
www.eeworm.com/read/409572/11318925
c 12-2.c
/*12-2.c*/
#define STACK_INIT_SIZE 100
#define STACKINCMENT 10
#define K 100
typedef struct{
selemtype *base;
selemtype *top;
int stacksize;
}sqstack;
sqstack s;
int initstac
www.eeworm.com/read/262864/11387623
c yin.c
/* c1.h (程序名) */
#include"string.h"
#include"malloc.h" /* malloc()等 */
#include"stdio.h" /* EOF(=^Z或F6),NULL */
#include"stdlib.h" /* atoi() */
#include"io.h" /* eof() */
#include"math.h"
www.eeworm.com/read/262778/11391554
cpp bo3-1.cpp
// bo3-1.cpp 顺序栈(存储结构由c3-1.h定义)的基本操作(9个)
Status InitStack(SqStack &S)
{ // 构造一个空栈S
if(!(S.base=(SElemType *)malloc(STACK_INIT_SIZE*sizeof(SElemType))))
exit(OVERFLOW); // 存储分配失败
S.t
www.eeworm.com/read/405794/11457511
cpp biaodashiqiuzhi.cpp
#include
#include
#define INITSIZE 100
typedef char ElemType;
typedef struct
{
int top;
ElemType *base;
int stacksize;
}sqstack;
#define INITSIZE 100
typedef cha
www.eeworm.com/read/405283/11466992
c 栈操作.c
#include
#include
#define MAX 20
#define ElemType int
#define S (*p)
struct SqStack
{
ElemType elem[MAX];
int top;
};
main()
{
struct SqStack *q;
int i,y,cord;
www.eeworm.com/read/403660/11513249
c 实验2的对中缀表达式求值.c
#include
#include
#define stackinitsize 100 //存储空间初始分配量
#define stackincrement 10 //存储空间分配增量
#define OVERFLOW -1
typedef struct
{
char *base; //在栈构造之前和销
www.eeworm.com/read/401879/11546651
cpp mazerecursiontotalpath.cpp
//
//**********************程序说明*******************************
// 该程序是迷宫问题递归求解全部路径的C语言代码,
// 迷宫二维数组表示,初值与教材图3.4一致
// wjluo,2004年3月3日
//****************************************************
www.eeworm.com/read/400544/11574649
cpp bo3-1.cpp
// bo3-1.cpp 顺序栈(存储结构由c3-1.h定义)的基本操作(9个)
void InitStack(SqStack &S)
{ // 构造一个空栈S。在教科书第47页
S.base=(SElemType*)malloc(STACK_INIT_SIZE*sizeof(SElemType));
if(!S.base)
exit(OVERFLOW); /