title: Will cin recognize \n typed in from keyboard as a newline character?
body: <p>I am a beginner for C++ so I'm sorry if this question sounds stupid..</p>
  
  <p>I made this little program to help me get familiar with the properties of <code>cin</code>:</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  using namespace std;
  
  int main()
  {
      string next;
      cout&lt;&lt;"Enter your input.\n";
      cin&gt;&gt;next;
      cout&lt;&lt;next;
      return 0;
  }
  </code></pre>
  
  <p>When I typed in <code>\n</code> from the keyboard input, I was returned <code>\n</code>.</p>
  
  <p>Also, when I changed the variable <em>next</em> from a string to a character and gave it the same input as above, I was returned only a <code>\</code>.</p>
  
  <p>My question is: Why am I not returned with a new line instead? Doesn't <code>cin</code> recognize <code>\n</code> type in from keyboard as a newline character? Or is it just applicable to <code>cout</code>?</p>