I have a string like this:
17, the day is beautiful , day
. And I want to split this string in the first ','. For example I want to take 2 strings. one for 17 and two for the day is beautiful , day
I have a string like this:
17, the day is beautiful , day
. And I want to split this string in the first ','. For example I want to take 2 strings. one for 17 and two for the day is beautiful , day
#include <boost/algorithm/string.hpp>
std::vector<std::string> strs;
boost::split(strs, "17, 132, asdasd, 111", boost::is_any_of(","));