title: Pass a string in C++
body: <p>Quick probably obvious question.</p>
  <p>If I have:</p>
  <pre><code>void print(string input)
  {
    cout &lt;&lt; input &lt;&lt; endl;
  }
  </code></pre>
  <p>How do I call it like so:</p>
  <pre><code>print(&quot;Yo!&quot;);
  </code></pre>
  <p>It complains that I'm passing in char *, instead of std::string. Is there a way to typecast it, in the call? Instead of:</p>
  <pre><code>string send = &quot;Yo!&quot;;
  print(send);
  </code></pre>