class String {
public:
String();
String(const char *str);
String(const String &);
String(int x);
char &operator[](int i);
const char operator[](int i) const;
String operator+(const String &str) const;
String operator+(const char &str) const;
String operator+(char *&str) const;
String operator-(const String &substr) const;
String operator-(const string &substr) const;
String& operator=(const String&);
String& operator=(char*);
String& operator=(const string&);
bool operator==(const String&) const;
bool operator==(const string&) const;
bool operator==(char *) const;
bool operator!();
// Function-Call Operators
int operator()(char) const;
int operator()(const String&) const;
int operator()(const string&) const;
int operator()(char *) const;
// Conversion Op
operator int() const;
~String();
};
ostream& operator<<(ostream& output, const String&);
istream& operator>>(istream& input, String&);
Comments
Leave a comment