Answer to Question #332428 in C++ for anna123

Question #332428

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&);


0
Service report
It's been a while since this question is posted here. Still, the answer hasn't been got. Consider converting this question to a fully qualified assignment, and we will try to assist. Please click the link below to proceed: Submit order

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS