c++ string comparison operator code example
Example 1: operators on strings c++
string s1 = "Now is the time...";
string s2 = "for all good men...";
string s3 = s1 + s2;
cout << "s3 is " << s3 << endl;
Example 2: compare string c++
int compare (const string& str) const;