title: How to convert string of binary values back to char
body: <p>Example</p>
  
  <p>NOTE: that i am only concerned about letters. so bitset 000001 would be <code>a</code> or <code>A</code>.</p>
  
  <p>I have a <code>string</code> named <code>s</code> with the value <code>"abc"</code>.
  I take each <code>char</code> of the <code>string</code> and convert it to binary value through
  the use of <code>bitset</code>.</p>
  
  <p>e.g</p>
  
  <pre><code>bitset &lt;6&gt; b1 = s[0];   //a
  bitset &lt;6&gt; b2 = s[1];   //b
  bitset &lt;6&gt; b3 = s[2];   //c
  </code></pre>
  
  <p>then i want to put the results into an <code>array</code> of <code>strings</code>. The name of the array is <code>arr</code> (and each <code>string</code> of the <code>array</code> will represent the binary value of each <code>char</code>)</p>
  
  <p>e.g</p>
  
  <pre><code>arr[0]   //will hold the value of char 'a' in binary form which is 000001
  arr[1]   //will hold the value of char 'b' in binary form which is 000010
  arr[2]   //will hold the value of char 'c' in binary form which is 000011
  </code></pre>
  
  <p>and the way i convert each <code>char</code> from the <code>string</code> to binary is</p>
  
  <pre><code>arr[0] = b1.to_string();    //arr[0] is now 000001
  arr[1] = b2.to_string();    //arr[1] is now 000010
  arr[2] = b3.to_string();    //arr[2] is now 000011
  </code></pre>
  
  <p><strong>Now here lies my problem.
  How do i convert them back to <code>char</code>?</strong></p>
  
  <p>e.g.</p>
  
  <pre><code>//I want each char to take back the each corresponding letter from the binary values
  
  char c1;   //How do i make the arr[0] value of 000001 to become 'a' again?
  char c2;   //Same here
  char c3;   //And here
  </code></pre>