Adding one character to string <p>In C++:</p> <p>If I want to add <code>0x01</code> to the string text I would do: <code>text += (char)0x01</code>;</p> <p>If I want to add <code>0x02</code> to the string text I would do: <code>text += (char)0x02</code>;</p> <p>If I want to add <code>0x0i</code> (were <code>i</code> is an unsinged <code>int</code> between 0 and 9), what could I do?</p> <p>EDIT: I probably wasn't quite clear. So by 0x01, I mean the character given in Hex as 01. So in the above if i is the integer (in decimal) say 3, then I would want to add 0x03 (so this is not the character given in decimal as 48 + 3).</p>