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