#ifndef _THING2_H #define _THING2_H //demonstrates why copy constructor is needed enum inOrder {nosort, sort}; class thing{ private: inOrder _inorder; //just so we have another member int * _bucket; int _count; int _bucketsize; public: // constructors and destructors thing(int size=10, inOrder O=nosort); // default constructor ~thing(); // destructor // copy constructor thing (const thing&); // note form!! // some functions void append(int); // tack to the end of the array; void display(); void removelast(); // overloaded operators thing& operator = (const thing &); int& operator[](int); }; #endif