代码搜索:LinkStack
找到约 226 项符合「LinkStack」的源代码
代码结果 226
www.eeworm.com/read/161837/10366352
cpp linkstack.cpp
//LinkStack.cpp
#include "LinkStack.h"
/*
* 前置条件:栈不存在
* 输 入:无
* 功 能:栈的初始化
* 输 出:无
* 后置条件:构造一个空栈
*/
template
LinkStack::LinkStack( )
{
top=NULL;
}
/*
*
www.eeworm.com/read/161837/10366355
dsp linkstack.dsp
# Microsoft Developer Studio Project File - Name="
www.eeworm.com/read/276532/10731602
h linkstack.h
enum Error_code{success,overflow,underflow};
templateclass LinkStack;
template
class Node{ //结点类
friend class LinkStack; //定义一个友元类
public:
Node(){next=null;}
Node(co
www.eeworm.com/read/274763/10853892
h linkstack.h
//栈的链式存贮结构
typedef struct stacknode
{
int data;
struct stacknode *next;
}stacknode,*linkstack;
//出错信息处理函数
void lerrormessage(char *s)
{
cout
www.eeworm.com/read/274718/10856614
h linkstack.h
#ifndef LINKSTACK_CLASS
#define LINKSTACK_CLASS
#include
#include
using namespace std;
#include "link.h"
template
class LinkStack
{ LinkedList StackList;
www.eeworm.com/read/239763/13258048
java linkstack.java
// linkStack.java
// demonstrates a stack implemented as a list
// to run this program: C>java LinkStackApp
////////////////////////////////////////////////////////////////
class Link
{
pu
www.eeworm.com/read/239763/13258052
class linkstack.class
www.eeworm.com/read/239079/13303657
java linkstack.java
public class LinkStack implements Stack
{
SNode top;
int size;
public LinkStack()
{
top = null;
size = 0;
}
public boolean isEmpty()//栈空
{
if(top == nu
www.eeworm.com/read/239079/13303682
class linkstack.class
www.eeworm.com/read/314343/13569096
h linkstack.h
#include
template
class LinkNode
{
public:
T data;
LinkNode *link;
LinkNode(LinkNode *ptr=NULL){link=ptr;}
LinkNode(const T&item,LinkNode *ptr=NULL)
{