This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<iostream> | |
using namespace std; | |
template<class Elem> | |
class AList{ | |
private: | |
int maxSize;//链表所能存储的最大元素数量 | |
int listSize;//当前实际的元素数量 | |
int fence;//当前操作位置,俗称“栅栏” | |
Elem *listArray;//存放链表元素的数组 |
OlderNewer