/* Konstantin Berlin as43304 Project 1 CMSC433 0201 Spring01 */ #ifndef INTLIST_H #define INTLIST_H #include "IntNode.h" #include class IntList { friend class IntEArray; public: IntList(); IntList( const IntList& other ); ~IntList(); IntList& operator=( const IntList& other ); int pop(); bool empty() const; int top() const; void push( int val ); void push( int val1, int val2 ); void remove ( int val1, int val2 ); int & operator[]( int index ); void appendCopyAtEnd( const IntList& other ); private: int size; IntNode *firstNode; IntNode *lastNode; }; #endif