Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <boost/algorithm/string.hpp>
- using namespace std;
- int main() {
- string input("geeks\tfor\tgeeks");
- vector<string> result;
- boost::split(result,input, boost::is_any_of("\t"));
- for(auto i:result) {
- cout << i << " ";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement