Tag: 顺序表示’
链表的顺序表示和实现(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
- 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