   add an int to a string
  I have a function that takes a string, and i need to pass it a string that has an unsigned int in the middle of it.so if unsigned value was 3, i would need to make the string:"the value of the number is (3)"Thanks to anyone that can help me with this.   
  Boost:std::string s = "the value of the number is " + boost::lexical_cast<std::string>(3);STL:#include <sstream>std::ostringstream sstr;sstr << "the value of the number is ";sstr << 3;std::string s = sstr.str();Or you could go an mostly C route:char str[100];sprintf(str, "the value of the number is %d", 3);std::string s = str;;  If you're using C, you can use snprintf() which is just like printf but it writes into a string.If you're using C++ you can use a stringstream like so.#include <sstream>std::ostringstream ouputString;outputString << "the value of the number is (" << 3 << ")";// call your functionfunc( outputString.str() );;  Thank you very much, the STL method worked like a charm.   