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; }
page revision: 1, last edited: 18 Apr 2007 14:49