I have an existing std::string and an int. I'd like to append the int to the string, but in human readable form (hex notation), rather than in binary gibberish.
Normally, I'd just use printf, but I can't do this with a std:: string (can I?)
Any suggestions as to how to do this?
Example:
Given:
std::string - "Your
Id Number is: " int - 0xdeadc0de
Output:
std::string - "Your Id Number is: 0xdeadc0de"