title: C++ How to get substring after a character?
body: <p>For example, if I have</p>
  
  <pre><code>string x = "dog:cat";
  </code></pre>
  
  <p>and I want to extract everything after the ":", and return cat. What would be the way to go about doing this?</p>