//stringm.h //header file for class String with '+' and '==' operators as member functions #ifndef STRINGM_H #define STRINGM_H #include class String { friend ostream& operator<<(ostream&, String&); friend istream& operator>>(istream&, String&); public: String(); String(const char *); String(const String&); ~String(); String& operator=(const String&); String operator+(const String&); int operator==(const String&); char& operator[](int); private: char *val; int length; }; #endif