#include #include #ifndef STRING_HPP #define STRING_HPP class String { char *text; public: String(char * = ""); String(String &); ~String(); friend String operator+(String &, String &); String & operator=(String &); char& operator[](unsigned int); friend ostream & operator << (ostream &, String &); friend istream & operator >> (istream &, String &); int lenghtOfString() { return strlen(text); } }; #endif STRING_HPP