#ifndef __ARRAY_HPP #define __ARRAY_HPP template class anArray { protected: T *table; int tablesize; int elems; int expandTo(int size); public: anArray(); anArray(const anArray& a); anArray(const anArray* a); virtual ~anArray(); anArray& operator=(const anArray& a); operator T*() { return table; } T& operator[](int i) { return table[i]; } virtual void insert(T e,int p); virtual void append(T e) { insert(e,size()); } virtual void remove(int p); int size() { return elems; } }; #endif