#ifndef GENERIC_LIST_H #define GENERIC_LIST_H #include #include using namespace std; template class GenericList { public: GenericList(int max); ~GenericList(); int length() const; void add(T item); bool full() const; void erase(); // additional syntax "<>" not suitable for all compilers, e.g., Visual Studio friend ostream& operator<< <> (ostream& out, const GenericList& theList); private: T* stuff; int maxLength; int currentLength; }; #include "genericList.cpp" #endif // GENERIC_LIST