Hello, I am not a very experienced C++ programmer, i get a warning when i do the following:
if (myString[i] != 'x')
{
}
what is the appropriate way to compare these?
thanks for your help!
Hello, I am not a very experienced C++ programmer, i get a warning when i do the following:
if (myString[i] != 'x')
{
}
what is the appropriate way to compare these?
thanks for your help!
possibility 1: the int that identifies the element in the array should not be larger than a regular int.
possibility 2:
If myString is of type std::wstring the appropriate comparison is myString[i] != L'x'
(ty popester!)