#include <string> std::string s = std::to_string(42);
int a = 10; char *intStr = itoa(a); string str = string(intStr);