StringStream

  • + 0 comments

    stringstream ss; vector temp; int tempstr; ss << str; char ch; while (!ss.eof()) {

        ss >> tempstr>>ch;
        temp.push_back(tempstr);
    

    } return temp;