代码搜索:Stack
找到约 10,000 项符合「Stack」的源代码
代码结果 10,000
www.eeworm.com/read/296792/8077155
cpp stack.cpp
#include "stdio.h"
#include "Stack.h"
#include "stdlib.h"
//双栈结构的基本操作函数
bool InitStack(TwStack &S)
{
//构造一个空双栈
S.base1=(int *)malloc(STACK_INIT_SIZE*sizeof(int));
if(!S.base1)exit(1)
www.eeworm.com/read/296792/8077168
h stack.h
#ifndef STACK
#define STACK
#include "stdio.h"
#include "Stack.h"
#include "stdlib.h"
//双栈结构的定义
#define STACK_INIT_SIZE 20
#define STACKINCREMENT 10
typedef struct
{
int *base1,*base2; /
www.eeworm.com/read/396749/8091871
h stack.h
#define type char
class Stack{
public:
type data[N];
int top;
Stack(){
top=0;
}
void push(type e){
data[top++]=e;
}
void pushstr(string str){
for(int i=str.length()-1
www.eeworm.com/read/396663/8096362
h stack.h
templateclass stack;
templateclass stackNode
{
private:
stackNode *next;
T element;
public:
stackNode(T data,stackNode *l){ element=data; next=l;
www.eeworm.com/read/296518/8097895
h stack.h
www.eeworm.com/read/296518/8097916
h stack.h
www.eeworm.com/read/196300/8101018
s stack.s
AREA Stacks, DATA, NOINIT
EXPORT StackUsr
StackUsr SPACE 1
END
;/*******************************************************************************************
www.eeworm.com/read/396525/8101641
dsw stack.dsw
Microsoft Developer Studio Workspace File, Format Version 6.00
# 警告: 不能编辑或删除该工作区文件!
###############################################################################
Project: "Stack"=.\Stack.dsp
www.eeworm.com/read/396525/8101643
ncb stack.ncb
www.eeworm.com/read/396525/8101646
plg stack.plg
Build Log
--------------------Configuration: Stack - Win32 Debug--------------------
Command Lines
Creating temporary file "C:\DOCUME~1\ADMINI~