title: Using getline() in C++
body: <p>I have a problem using getline method to get a message that user types, I'm using something like:</p>
  
  <pre><code>string messageVar;
  cout &lt;&lt; "Type your message: ";
  getline(cin, messageVar);
  </code></pre>
  
  <p>However, it's not stopping to get the output value, what's wrong with this?</p>