title: C++ - Convert a string binary chain to a int binary chain
body: <p>I try to convert a string like that 00000101 to a int like that 00000101.</p>
  
  <p>But each method I tried, has transformed that chain to something like that: 101 without the 0s.</p>
  
  <p>So how I can do in order to keep the 0s?</p>