C++ converting binary(64 bits) to decimal
<p>I using string to contain my 64 bits binary.</p>

<pre><code>string aBinary;
aBinary = "100011111011101100000101101110000100111000011100100100110101100";
</code></pre>

<p>Initially i tried this..</p>

<pre><code>stringstream ss;
ss &lt;&lt; bitset&lt;64&gt;(aBinary).to_ulong();
buffer = ss.str();

cout &lt;&lt; buffer &lt;&lt; endl;
</code></pre>

<p>Its work for some binary, but this one it doesn't work. How can i convert the above 64 bits binary that is contain in a string container into a decimal which is of a string container too.</p>
