c itoa code example Example: c++ itoa #include <sstream> int i = 5; std::string s; std::stringstream out; out << i; s = out.str();