代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/398938/7907706
o stack.o
www.eeworm.com/read/298961/7919546
cpp stack.cpp
// Stack.cpp: implementation of the Stack class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Stack.h"
#include
////
www.eeworm.com/read/298961/7919573
h stack.h
// Stack.h: interface for the Stack class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STACK_H__A78BF131_18B2_452D_85FA_C84C449363B9__INCLUDED_)
#d
www.eeworm.com/read/198623/7919892
s stack.s
/ builtins for shift-reduce parsking
f = r5
i = r3
g = r4
.globl succ,pbundle,goto,iget
.globl g1
.globl stack,unstack,gotab,accept
/stack label of present rule (state)
/should come first in a rule
www.eeworm.com/read/433514/7924913
c stack.c
//堆栈的有关算法
#define MAX 30 // 最多30个元素
#define NULL -1 //失败标志
typedef struct
{
int d[MAX] ; //用数组作为堆栈的储存空间
int top ; //指示栈顶位置的变量
}STACK ; //堆栈类型定义
STACK sq ; //定义堆栈
int PUSH
www.eeworm.com/read/433514/7924952
asm stack.asm
;用户堆栈的有关算法
STACK EQU 1FH ;堆栈所在页面。
BOTTOM EQU 00H ;栈底单元。
N EQU 200 ;堆栈空间范围的字节数。
TOP DATA 3EH ;栈顶指针。
ORG 0000H
LJMP TEST
ORG 100H
TEST: LCALL SETNULL ;初始化空栈
MOV A,#5AH
LCALL DPUSH ;数
www.eeworm.com/read/433503/7925534
h stack.h
// stack.h: interface for the stack class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STACK_H__8B7B4B79_9A95_4D95_8D75_DE99D9E7136A__INCLUDED_)
#d
www.eeworm.com/read/433503/7925558
obj stack.obj
www.eeworm.com/read/433503/7925567
cpp stack.cpp
// stack.cpp: implementation of the stack class.
//
//////////////////////////////////////////////////////////////////////
#include "stack.h"
#include "iostream.h"
///////////////////////////
www.eeworm.com/read/398720/7927260
h stack.h
#define MAXSIZE 20
template
class stack{//定义一个栈
protected:
Type * p;//用数组的形式存放栈的元素
int imaxsize;//栈所能存放的最大元素个数
int itop;//栈中当前所存放的元素个数
public:
stack(int a=MAXSIZE);//缺省状况下的最大