insert integer into string c++ code example Example: how to turn int into string c++ int a = 10; char *intStr = itoa(a); string str = string(intStr);