代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/149332/12386938
h stack.h
#ifndef Stack_SFSFSF
#define Stack_SFSFSF
#include
#include
using namespace std;
template
class Stack{
public:
Stack();
bool empty() const;
www.eeworm.com/read/337096/12391682
h stack.h
// stack.h -- class definition for the stack ADT
#ifndef STACK_H_
#define STACK_H_
typedef unsigned long Item;
class Stack
{
private:
enum {MAX = 10}; // constant specific to class
www.eeworm.com/read/337096/12391694
cpp stack.cpp
// stack.cpp -- Stack member functions
#include "stack.h"
Stack::Stack() // create an empty stack
{
top = 0;
}
bool Stack::isempty() const
{
return top == 0;
}
bool Stack::isf
www.eeworm.com/read/250662/12393196
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/250662/12393212
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/337040/12400965
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,