简单有关问题大家帮忙进来看下!多谢

简单问题大家帮忙进来看下!谢谢
char*   tempstr;//这里该初始化多大?
_itoa(tempnum   %   16,tempstr,16);

这里对tempnum对16取模然后转换为16进制
就是那个地方应该怎么初始化大小
CString   tempStr
_itoa(tempnum   %   16,tempstr,16);
或者我这样写
CString   tempstr;
_itoa(tempnum   %   16,tempstr.GetBuffer(tempstr.GetLength()),16);
那种写法好点.多谢高手指点

------解决方案--------------------
CString tempstr;
tempstr.Format( "%X ",tempnum % 16);//这样能不能达到你的目的.
------解决方案--------------------
new char[4]
------解决方案--------------------
对16取模然后转成16进制? 那一个字符就够了,
加上终止符也就是2个字符