title: C++ Error: Invalid conversion from 'char' to 'const char*'
body: <p>I'm completely new to C++ and I created this function:</p>
  
  <pre><code>bool guessWord(string compWord)
  {
      cout &lt;&lt; "Guess a letter: ";
      string userLetter;
      cin &gt;&gt; userLetter;
      for (unsigned int x = 0; x &lt; compWord.length(); x++)
      {
          string compLetter = compWord[x];
          if (compLetter == userLetter)
          {
              return true;
          }
      }
      return false;
  }
  </code></pre>
  
  <p>But it returns to following <code>error: invalid conversion from 'char' to 'const char*' [-fpermissive]</code>. Can anyone help me understand what this means?</p>