how to convert hex to string?

Oct 30, 2009 at 3:58pm
hi all

is there anyone who can tell me how to convert hex to string with cpp code?

tks
Oct 30, 2009 at 4:01pm
What do you mean?
Oct 30, 2009 at 4:09pm
en , I mean if here is any method or function to convert hex to string , for example if I write a function string hexToString(hexvalue) , I put parameter 0x1111, I want it return '4369'. how to implement or is there any existing function?
tks
Oct 30, 2009 at 4:16pm
So you want to convert a hex number to a string representing that number in decimal?
see http://www.cplusplus.com/articles/numb_to_text/#n2s it doesn't matter if the number is hex or dec. The default output is decimal.
Topic archived. No new replies allowed.