Tag: 模板类’
链表的链式表示和实现(C++模板类实现)
- by Hector
[CODE=cplusplus]
// 名 称 (Unit Name) : 链表List.h 头文件
// 支 持 (Support) : http://www.ourys.com
#ifndef _LIST_H
#define _LIST_H
template
class List;
/*———— 用友元类做节点 —
栈(C++模板类实现)
- by Hector
[CODE=cplusplus]
/*//////////////////////////////////////////////////////////////////////////////
// 名 称 (Unit Name): Stack.h 栈头文件
// 作 者 (Author ): Hector(张伟)
// 邮 箱 (E-mail ):
链表的顺序表示和实现(C++模板类实现)
- by Hector
[CODE=cplusplus]
/*List.h*/
#ifndef _LIST_H
#define _LIST_H
#define LIST_INIT_SIZE 100
#define LISTINCREMENT 10
template
class List
{
public:
List(); //构造函数:构造一个空的线性表
//~List(); //析构函数
void