convert int to string c++

include

include

using namespace std;

int main() { int number = 123456; string str_number = to_string(number); cout << "The integer converted to string is: " << str_number << endl; return 0; }