代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/138936/13200681
h stack.h
/*
*
* Copyright (c) 1994
* Hewlett-Packard Company
*
* Permission to use, copy, modify, distribute and sell this software
* and its documentation for any purpose is hereby granted without fee,
www.eeworm.com/read/325486/13201090
java stack.java
// Introduced in Chapter 4
/** A last-in, first-out stack. */
public interface Stack {
/** Return true if this Stack is empty. */
public boolean isEmpty();
/**
* Return the top item on t
www.eeworm.com/read/138927/13201841
h stack.h
#ifndef _STACK_H_
#define _STACK_H_
#include
#include
#include
typedef struct _Stack Stack;
struct _Stack
{
Object parent;
List* stack;
};
Stack* st
www.eeworm.com/read/138927/13201945
c stack.c
#include
Stack* stack_new()
{
Stack* self;
self = (Stack*) mem_new (sizeof(Stack));
object_init_object((Object*)self, stack_destroy);
self->stack = list_new();
return self;
}
www.eeworm.com/read/240686/13204962
h stack.h
#ifndef STACK_CLASS
#define STACK_CLASS
#include
#include
#include "link.h"
template
class Stack
{
private:
// a linked list object to hold th
www.eeworm.com/read/138638/13227291
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/138638/13227304
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/240259/13228589
h stack.h
www.eeworm.com/read/240259/13228886