代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/356276/10232563
c stack.c
#include
#include
#define Max 100
int *p;
int *tos;
int *bos;
/*添加一个数据放到堆栈对顶端*/
void push(int i)
{
if(p > bos)
{
printf("堆栈以满\n");
return;
}
*p = i;
p+
www.eeworm.com/read/162870/10262205
cpp stack.cpp
#include "Stack.h"
#include "assert.h"
template
Stack::~Stack()
{
StackNode*p;
while(top != NULL)
{
p = top;
top = top->link;
delete p;
}
}
template
www.eeworm.com/read/162870/10262233
h stack.h
template class Stack;
template
class StackNode
{
friend class Stack;
private:
Type data;
StackNode* link;
StackNode(Type d = 0,StackNode*l =
www.eeworm.com/read/281085/10267022
h stack.h
#if !defined(AFX_STACK_H__75314E61_4BBF_11D5_9DFE_5254AB1C303A__INCLUDED_)
#define AFX_STACK_H__75314E61_4BBF_11D5_9DFE_5254AB1C303A__INCLUDED_
#include
template
clas
www.eeworm.com/read/280940/10277211
s stack.s
IRQ_STACK_SIZE EQU 0x800 ;2k
FIQ_STACK_SIZE EQU 0x40
ABT_STACK_SIZE EQU 0x40
UND_STACK_SIZE EQU 0x40
SVC_STACK_SIZE EQU 0x400 ;1k 系
www.eeworm.com/read/280880/10282181
h stack.h
// stack.h: interface for the stack class.
//
#if !defined(AFX_STACK_H__5E72B606_906A_4C34_8B75_548132B281D7__INCLUDED_)
#define AFX_STACK_H__5E72B606_906A_4C34_8B75_548132B281D7__INCLUDED_
#i
www.eeworm.com/read/280880/10282203
cpp stack.cpp
// stack.cpp: implementation of the stack class.
//
//////////////////////////////////////////////////////////////////////
#include "stack.h"
#include "iostream.h"
///////////////////////////
www.eeworm.com/read/280779/10292451
cpp stack.cpp
#include "Stack.h"
bool Stack::Push(SType d)
{
if (Top == SSize)
return false;
else {
data[Top] = d;
Top++;
return true;
}
}
bool Stack::Pop(SType &d)
www.eeworm.com/read/280779/10292463
h stack.h
const int SSize = 8;
typedef int SType;
class Stack {
private:
SType data[SSize];
int Top;
public:
Stack() { Top = 0; }
~Stack() { }
bool isEmpty() { return !Top; }
i
www.eeworm.com/read/162549/10296866
s stack.s
;/****************************************************************************
; * stack.s: stack assembler file for Philips LPC214x Family Microprocessors
; *
; * Copyright(C) 2006, Philips Se