#include <iostream> #include <string> #include <sstream> using namespace std; string my_func(int x){ stringstream strNumber; strNumber << x; return strNumber.str(); } int main(){ cout << my_func(5); }