Template LinearList
template <class T>
class linearList{
public:
linearList(int maxListSize = 10);
~linearList();
bool isEmpty() const;
int length() const;
bool find(int k, T& x) const;
int search (const T& x);
linearList<T> & delete(int k, T& x);
linearList<T> & insert(int k, const T& x);
private:
...
...
...
}
Previous slide
Next slide
Back to first slide
View graphic version