title: How to convert binary into decimal using <bitset> library?
body: <p>I use this simple code to convert a decimal into binary : </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;windows.h&gt;
  #include &lt;bitset&gt;
  using namespace std;
  
  int main(int argc, char const *argv[]){
  
      unsigned int n;
      cout &lt;&lt; "# Decimal:  "; cin &gt;&gt; n; cout &lt;&lt; endl;
      bitset&lt;16&gt;binary(n);
      cout &lt;&lt; endl &lt;&lt; "# Binary:  " &lt;&lt; binary &lt;&lt; endl;
  
      system("Pause"); return 0;
  }
  </code></pre>
  
  <p>How to convert "binary" into decimal and assign the value to other variable ? </p>