title: Convert string to an integer using a given base
body: <p>What is the <code>C++</code> equivalent of the following <code>Java</code> line of code</p>
  
  <pre><code>int x = Integer.parseInt("0010011110", 2);
  </code></pre>