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