title: How to parse a string containing spaces in C++?
body: <p>I have a string like this: </p>
  
  <pre><code>aaa bbb
  </code></pre>
  
  <p>There is a space before the 2nd part of the string.
  My goal is to parse only the first part, so <code>aaa</code>.
  Everything after the space is out.
  How can I do this in C++?</p>