私は C++ がまったく初めてで、この関数を作成しました。
bool guessWord(string compWord)
{
    cout << "Guess a letter: ";
    string userLetter;
    cin >> userLetter;
    for (unsigned int x = 0; x < compWord.length(); x++)
    {
        string compLetter = compWord[x];
        if (compLetter == userLetter)
        {
            return true;
        }
    }
    return false;
}
しかし、次の に戻りますerror: invalid conversion from 'char' to 'const char*' [-fpermissive]。これが何を意味するのか理解できる人はいますか?