Hi and I am writing a small program but need to make a function that converts an integer to a hex. Below is an example of a similar function but need the result stored in a std::string variable.
printf("%x%x%x%x%x",h0, h1, h2, h3, h4);
Does anybody know how to create a hex() function which will do the same as the above except instead of printing the data it will store the data? I'm also using c++ and hoping this one will work in VC++.