to all the users, please help me... instead of using stringstream, is there another other methods?Code:#include <iostream> #include <sstream> //ostringstream, str() using namespace std; int main() { ostringstream out; int n = 2; out<<n; n = 5; out<<n; n = 7; out<<n; string str = out.str(); cout<<str<<endl; return 0; }
my complier do not allow the using of namespace std