Friday, July 31, 2009

Tell me any body?

how to compare tow strings using overloaded == operator in c++ pls help me

Tell me any body?
bool operator==(const string%26amp; s1, const string%26amp; s2) {


return s1.compare(s2) == 0;


}


No comments:

Post a Comment