代码搜索:InitStack
找到约 954 项符合「InitStack」的源代码
代码结果 954
www.eeworm.com/read/325892/13176579
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); /
www.eeworm.com/read/315999/13532649
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); /
www.eeworm.com/read/288094/6318579
txt 堆栈的数据结构和操作.txt
//堆栈结构
typedef struct{
HGLOBAL hMem; //堆栈全局内存句柄
POINT *lpMyStack; //指向该句柄的指针
LONG ElementsNum; //堆栈的大小
LONG ptr; //指向栈顶的指针
}MYSTACK;
//初始化堆栈的操作,第二个参数指定堆栈的大小
BOOL InitStack(HWND hWnd,LONG Stack
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); /
www.eeworm.com/read/118192/14882921
c 习题-39.c
//本程序只给出了算法思想
//读者可以自己完善本程序
typedef struct {
int low;
nt high;
} boundary; //子序列的上下界类型
void QSort_NotRecurve(int SQList &L)//快速排序的非递归算法
{
low=1;high=L.length;
InitStack(S); //S的元素为bounda
www.eeworm.com/read/115447/15013959
c 习题-39.c
//本程序只给出了算法思想
//读者可以自己完善本程序
typedef struct {
int low;
nt high;
} boundary; //子序列的上下界类型
void QSort_NotRecurve(int SQList &L)//快速排序的非递归算法
{
low=1;high=L.length;
InitStack(S); //S的元素为bounda
www.eeworm.com/read/212828/15148411
c 习题-39.c
//本程序只给出了算法思想
//读者可以自己完善本程序
typedef struct {
int low;
nt high;
} boundary; //子序列的上下界类型
void QSort_NotRecurve(int SQList &L)//快速排序的非递归算法
{
low=1;high=L.length;
InitStack(S); //S的元素为bounda
www.eeworm.com/read/195829/5107114
c 7.7.c
/*用非递归过程实现深度优先搜索*/
void DepthFirstSearch(Graph g,int v0) /*从v0出发深度优先搜索图g*/
{
InitStack(S); /*初始化空栈*/
Push(S,v0);
while(!Empty(S))
{
v=Pop(S);
if(!visited(v)) /*栈中可能有重复结点*/
{
www.eeworm.com/read/303129/3815308
c 7.7.c
/*用非递归过程实现深度优先搜索*/
void DepthFirstSearch(Graph g,int v0) /*从v0出发深度优先搜索图g*/
{
InitStack(S); /*初始化空栈*/
Push(S,v0);
while(!Empty(S))
{
v=Pop(S);
if(!visited(v)) /*栈中可能有重复结点*/
{
www.eeworm.com/read/360652/2960597
txt 算法 6.2.txt
算法 6.2
void InOrder_iter( BiTree BT,void(*visit)( BiTree ) ) {
// 利用栈实现中序遍历二叉树,T为指向二叉树的根结点的头指针
InitStack(S);
e.ptr=BT; e.task=Travel; // e为栈元素
if(BT) Push(S, e);