Hello,
I need to embed an integer variable into a string declaration. I tried
the following, but it failed:
int myInt = 16;
string myText = "Value = " + string(myInt);
Can you help me with this?
On another note, I was wondering how I can output the value of an int
in base 16. For instance, how can I write the following in C++?
printf("Value = 0x%x\n",myInt);
Thanks in advance for your help.