title: Set individual bit in C++
body: <p>I have a 5 byte data element and I need some help in figuring out how in C++ to set an individual bit of one of these byte;  Please see my sample code below:</p>
  
  <pre><code>char m_TxBuf[4]; 
  </code></pre>
  
  <p>I would like to set bit 2 to high of byte <code>m_TxBuf[1]</code>.</p>
  
  <pre>    
  00000 0 00
        ^ This one
  </pre>
  
  <p>Any support is greatly appreciated;
  Thanks!</p>