How to separate the line and insert a vector on c+
-
Stroke: The name of the Fatherland.
(Vector): [Familia; Name; Office]
The python could use a map and split method to separate the line into words. Maybe there's a built-in role in the pros?
-
May be:
std::vector<std::string> res;
std::istringstream ss(text);
std::string word;
while (ss >> word)
{
res.push_back(word);
}