代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/446823/7564326
c stack.c
void stack ( n, nodes, source )
long n; /* number of nodes */
node *nodes, /* pointer to the first node */
*source; /* pointer to
www.eeworm.com/read/446574/7576563
o stack.o
www.eeworm.com/read/446574/7576566
h stack.h
#ifndef STACK_H
#define STACK_H
#define STACK_INIT_SIZE 200 //存储空间初始分配量
#define STACKINCRAMENT 10 //存储空间分配增量
#define SElemType int
/**---栈的顺序存储表示----*/
typedef struct stack
{
SElemType* bas
www.eeworm.com/read/446574/7576567
c stack.c
#include "stdafx.h"
Status InitStack(stack* s)
{
//构造一个空栈
s->base = (SElemType*) malloc(STACK_INIT_SIZE*sizeof(SElemType));
if(s->base==NULL) return ERROR;
s->top = s->base ; //表示空栈
s->sta
www.eeworm.com/read/445176/7598230
pdf stack.pdf
www.eeworm.com/read/444873/7603939
c stack.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/444799/7606483
c a_stack.c
/*
** A stack implemented with a static array. The array size can
** be adjusted only by changing the #define and recompiling
** the module.
*/
#include "stack.h"
#include
#define
www.eeworm.com/read/444799/7606490
h stack.h
/*
** Interface for a stack module
*/
#define STACK_TYPE int /* Type of value on the stack */
/*
** push
** Pushes a new value on the stack. The argument is the value
** to be pushed.
*/
www.eeworm.com/read/444091/7618053
c a_stack.c
/*
** A stack implemented with a static array. The array size can
** be adjusted only by changing the #define and recompiling
** the module.
*/
#include "stack.h"
#include
#define
www.eeworm.com/read/444091/7618057
h stack.h
/*
** Interface for a stack module
*/
#define STACK_TYPE int /* Type of value on the stack */
/*
** push
** Pushes a new value on the stack. The argument is the value
** to be pushed.
*/