title: C++ Having trouble with sscanf pattern
body: <p>I am trying to "extract" the name and the next integer. When I run this, I get a run-time error. I have tested without the string and it runs fine.</p>
  
  <pre><code>// Test string
  std::string show = "BlahBlah 3";
  
  // Pickup string and int
  std::string nameString;
  int id;
  sscanf(show.c_str(), "%s %i", &amp;nameString, &amp;id);
  </code></pre>
  
  <p>What am I doing wrong?</p>