Int to String
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cctype>
#include <cmath>
#include <list>
#include <sstream>
 
using namespace std;
 
int main()
{
    int number0;
    int number1 = 123456789;
 
    stringstream ss;
 
    //ss >> number0;
    ss << number1;
 
    cout << ss.str();
 
    return 0;
}
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.