Skip to main content
Source Link
NL628
  • 438
  • 7
  • 21

This answer takes the string and puts it into a vector of strings. It uses the boost library.

#include <boost/algorithm/string.hpp>
std::vector<std::string> strs;
boost::split(strs, "string to split", boost::is_any_of("\t "));
Post Made Community Wiki by NL628