// // Expandable integer array class // #ifndef INTEARRAY_H #define INTEARRAY_H class IntEArray; class ElementRef { public: ElementRef( IntEArray& theArray, int i ); ElementRef( const ElementRef& other ); ~ElementRef(); ElementRef& operator=( const ElementRef& rhs ); ElementRef& operator=( int val ); operator int() const; }; class IntEArray { public: IntEArray(); IntEArray( const IntEArray& other ); ~IntEArray(); IntEArray& operator=( const IntEArray& rhs ); ElementRef operator[]( int i ); int operator()( int i ) const; IntEArray startingFrom( int startOffset ) const; }; #endif // INTEARRAY_H