title: How can to convert hexadecimal to string? C++
body: <p>I have an array of hexadecimals and I need to convert it to string.</p>
  
  <p>my array:</p>
  
  <pre><code>// declaration
  unsigned char HEX_bufferMessage[12];
  
  // initialize
      HEX_bufferMessage[0] = 0xF0;
      HEX_bufferMessage[1] = 0x15;
      HEX_bufferMessage[2] = 0x31;
      HEX_bufferMessage[3] = 0x02;
      HEX_bufferMessage[4] = 0x03;
      HEX_bufferMessage[5] = 0x00;
      HEX_bufferMessage[6] = 0x00;
      HEX_bufferMessage[7] = 0xD1;
      HEX_bufferMessage[8] = 0xD1;
      HEX_bufferMessage[9] = 0x00;
      HEX_bufferMessage[10] = 0x00;
      HEX_bufferMessage[11] = 0xF7;
  </code></pre>
  
  <p>I only have these informations in hexadecimal format, I need to convert them to string. Anyone know how I can do it??</p>
  
  <p>Thank you!!</p>