Does anyone know how to compare string[i] with a letter, say "x" in a for loop? I've tried to do this:But my compiler says: ISO C++ forbids comparison between pointer and integer. i is defined as int i = 0 and string is a C++ style string. Any help would be nice.Code:if (string[i] == "x"){}