// // IntList class // #ifndef INTLIST_H #define INTLIST_H class IntList { public: IntList(); IntList( const IntList& other ); ~IntList(); IntList& operator=( const IntList& rhs ); int pop(); bool empty() const; int top() const; void push( int val ); int & operator[]( int index ); void appendCopyAtEnd( const IntList& other ); }; #endif // INTLIST_H