This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#ifndef LINEARLIST_H
#define LINEARLIST_H
template<classT>
classLinearList{
public:
LinearList(){};//构造函数
~LinearList(){};//析构函数
virtualintSize()const=0;//求表最大体积
virtualintLength()const=0;//求表长度
virtualintSearch(T&x)const=0;//在表中搜索给定值x
virtualintLocate(inti)const=0;//在表中定位第i个算数的位置
virtualboolgetData(inti,T&x)const=0;//取第i个表项的值 virtual T * getData(int i)const = 0;