convert integer to string in c++
#include <iostream>
#include <string>
using namespace std;
int main() {
int number = 123;
string str = to_string(number);
cout << "The string representation of the number is: " << str << endl;
return 0;
}