Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(unsigned int i = 0; i < word.length();)
- {
- if(!isalpha(word[i])) //To read plain text into the vector, with the exception of apostrophe
- {
- if(word[i] != '\'')
- {
- word = word.erase(i, 1);
- }
- }
- else i++;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement