#include<iostream> #include<sstream> #include<string> using namespace std; int main() { int a = 5; ostringstream os; os << a; string s = os.str(); cout << s << endl; return 0; }
#include<iostream> #include<sstream> #include<string> using namespace std; int main() { int a = 5; ostringstream os; os << a; string s = os.str(); cout << s << endl; return 0; }