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