Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. #include <vector>
  2. #include <sstream>
  3.  
  4. void split(string str, char delimiter) {
  5. stringstream ss(str);
  6. string temp;
  7.  
  8. while (getline(ss, temp, delimiter)) {
  9. sv.push_back(temp);
  10. }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement