class DynStr { char* str; int length; void free(); void copyFrom(const DynStr& other); public: DynStr(); DynStr(const char* str); DynStr(const DynStr& copy); DynStr& operator=(const DynStr& other); ~DynStr(); const char* get_str() const; int compare(const char* other) const; };