1 std::stringstream ss; 2 string testString; 3 std::reverse_copy(result.begin(),result.end(),ostream_iterator<int>(ss,"")); 4 testString = ss.str();
string op; int temp; temp = atoi(op.substr(j,1).c_str());