int i = 123; char buffer[20]; std::string number("number = "); std::string str = number + itoa(i, buffer, 10);
int i = 123; std::string number("number = "); std::stringstream ss; ss << number << i; std::string str = ss.str();