代码搜索:SqStack
找到约 774 项符合「SqStack」的源代码
代码结果 774
www.eeworm.com/read/368262/9703521
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/368255/9703719
c stack.c
// file: stack.c
#include "stack.h"
#include "malloc.h"
#include "string.h"
// 构造一个空栈
bool InitStack(SqStack *S, uint8 elemsize)
{
S->base = (byte *)malloc(STACK_INIT_SIZE* elemsize);
www.eeworm.com/read/269738/11080423
cpp 魔王语言.cpp
// 魔王语言解释.cpp
#include "stdlib.h"
#include "stdio.h"
#include "stdlib.h"
//========================================================
// 栈操作
//==================================================
www.eeworm.com/read/269550/11094572
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/269546/11094827
c 3.c
#include"stdio.h"
#include"stdlib.h"
#define MAXSIZE 100
typedef int ElemType;
typedef struct{ElemType elem[MAXSIZE];
int top;
}SqStack;
void OutStack(SqStack p);
void InitStac
www.eeworm.com/read/266764/11213266
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/411734/11230412
cpp algo0301.cpp
void conversion (int Num) { // 算法3.1
// 对于输入的任意一个非负十进制整数,打印输出与其等值的八进制数
ElemType e;
SqStack S;
InitStack(S); // 构造空栈
while (Num) {
Push(S, Num % 8);
N
www.eeworm.com/read/266126/11239316
cpp 倪协勉.cpp
#include
#include
#include
#define length 11
#define STACK_INIT_SIZE 31
#define OK 1
#define ERROR 0
#define OVERFLOW 0
#define STACKINCREMENT 10
typedef struct S
www.eeworm.com/read/266126/11239419
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/411432/11245858
txt 二叉树三种遍历的非递归算法.txt
二叉树三种遍历的非递归算法(背诵版)
本贴给出二叉树先序、中序、后序三种遍历的非递归算法,此三个算法可视为标准算法,直接用于考研答题。
1.先序遍历非递归算法
#define maxsize 100
typedef struct
{
Bitree Elem[maxsize];
int top;
}SqStack;
void PreOrderUnre