#ifndef HEADER_STRING #define HEADER_STRING #include class String { char* str; unsigned length; void copyFrom(const String& other); void free(); public: String(const char* str); String(); String(const String& other); String& operator=(const String& other); ~String(); friend std::ostream& operator<<(std::ostream& ostr, const String& str); }; #endif