cast int to string in c++ code example Example: change int to string cpp Click to copy#include <string> std::string s = std::to_string(42);