// File: dmc2.h // // A Dynamic Memory Class (DMC) // This time with copy constructor and // overloaded assignment operator. #include using namespace std ; class DMC { friend ostream& operator<< (ostream& os, const DMC& X) ; public: DMC() ; // default constructor DMC(const DMC& Y) ; // copy constructor ~DMC() ; // destructor DMC& operator=(const DMC& Y) ; // assignment void Set(int n) ; private: static int count ; int number ; int *ptr ; } ; const DMC operator+(const DMC& X, const DMC& Y) ; ostream& operator<< (ostream& os, const DMC& X) ;