const int MaxSize=100;
template
class SeqList
{
public:
SeqList();
SeqList(T a[],int n);
~SeqList();
int Length(){return length;}
T Get(int i);
int Locate(T x);
void Inser(int i,T x);
T Delete(int i);
void PrintList();
private:
T data[MaxSize];
int length;
};
数据结构作业2
最新推荐文章于 2022-04-29 19:18:36 发布