StringStream

  • + 0 comments

    vector parseInts(string str) { vector vec; stringstream ss; ss << str; char ch; int num; while (!ss.eof()){ ss >> num >> ch; vec.push_back(num); } return vec; }