c++ compare strings
if ((str1.compare(str2) == 0) || (str1 == str2))
// they are EQUAL
// str1.compare(str2):
// < 0 Either the value of the first character that does not match is lower in the compared string, or all compared characters match but the compared string is shorter.
// > 0 Either the value of the first character that does not match is greater in the compared string, or all compared characters match but the compared string is longer.