Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string temp;
- p = prop.find_first_of(" ,?!.");// p si q sunt int uri care tin pozitiile separatorilor
- temp = prop.substr(0, p);
- words.push_back(temp);
- while (p < prop.size())
- {
- q = prop.find_first_of(" ,?!.", p + 1);
- temp = prop.substr(p + 1, q - p - 1);
- if(q - p > 1)
- words.push_back(temp);
- p = q;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement