#include <sstream> std::string number_to_string(int num) { std::stringstream stream; stream << num; return stream.str(); }