Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

split text c++

#include <boost/algorithm/string.hpp>

std::string text = "Let me split this into words";
std::vector<std::string> results;

boost::split(results, text, [](char c){return c == ' ';});
Source by www.fluentcpp.com #
 
PREVIOUS NEXT
Tagged: #split #text
ADD COMMENT
Topic
Name
3+7 =