title: C++ a value of type cannot be assigned to an entity of type
body: <pre><code>while (gameon = true) {
    char ch = _getch();
    if (ch == 'd') {
      move = move + 1;
      ch = &quot;&quot;;
    }
  }
  </code></pre>
  <p>I get this error and kind find anything to fix this on this forum</p>