SuppposeSuppose I have an integer= 0123456789101112 integer = 0123456789101112. Now This Integer Can, this integer can be Convertedconverted into String By stringstreama string by the stringstream class.
Here is Codethe code in C++:
#include <bits/stdc++.h> using namespace std; int main() { int n,i; string s; stringstream st; for(i=0;i<=12;i++) { st<<i; } s=st.str(); cout<<s<<endl; return 0; }