title: Read characters till end of line
body: <p>Can someone please give me a simple answer on how do I read a characters till the end of the line? I have tried typing </p>
  
  <pre><code>cin &gt;&gt; CHAR;
  
  if (CHAR == '\n' || CHAR == '\0') cout &lt;&lt; "?" &lt;&lt; endl;
  </code></pre>
  
  <p>and none of this work for me, it just ignores this and reads further.</p>