title: C++ String Concatenation operator<<
body: <p>I have realised my mistake. I was trying to concatenate two strings.</p>
  <p>I have just started to learn C++. I have a problem about string concatenation.
  I don't have problem when I use:</p>
  <pre><code>cout &lt;&lt; &quot;Your name is&quot;&lt;&lt;name;
  </code></pre>
  <p>But when I try to do it with a string:</p>
  <pre><code>string nametext;
  nametext = &quot;Your name is&quot; &lt;&lt; name;
  cout &lt;&lt; nametext;
  </code></pre>
  <p>I got an error. How can I concatenate two strings?</p>