how to check if a character string is equal to some characters c++ code example Example: check if equal to \ char or not c++ if (c == '\\') { }