代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/182636/9198240
dsw stack.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE!
###############################################################################
www.eeworm.com/read/182636/9198244
plg stack.plg
Build Log
--------------------Configuration: stack - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\buaaxgw
www.eeworm.com/read/182636/9198245
dsp stack.dsp
# Microsoft Developer Studio Project File - Name="stack" - Package Owner=
# Microsoft Developer Studio Generated Build File, Format Version 6.00
# ** DO NOT EDIT **
# TARGTYPE "Win32 (x86) Con
www.eeworm.com/read/182636/9198249
cpp stack.cpp
#include
#include "stack.h"
void InitStack(SeqStack *S)
{//将顺序栈置空
S->top = -1;
}
int StackEmpty(SeqStack *S)
{
return S->top == -1;
}
int StackFull(SeqStack *S)
{
re
www.eeworm.com/read/182612/9198535
h stack.h
#include
#include
template
class stack
{
public:
stack(int i);
~stack()
{ delete []stck; }
void push(ST i);
ST pop();
private:
int tos,le
www.eeworm.com/read/182600/9199072
s stack.s
;/****************************************Copyright (c)**************************************************
;** 广州周立功单片机发展有限公司
;** 研
www.eeworm.com/read/182600/9199123
o stack.o
www.eeworm.com/read/182545/9200074
h stack.h
enum Error_code{underflow, overflow, success};
const int maxstack = 10; // small value for testing
template
class MyStack {
public:
MyStack();
bool empty() const;
www.eeworm.com/read/182545/9200087
cpp stack.cpp
#include "stack.h"
template
Error_code MyStack::push(const Stack_entry &item)
/*
Pre: None.
Post: If the Stack is not full, item is added to the top
of t