WORD COUNTAccording to your code, you probably are not counting the last word. There is no space after it.
The string is messed up after eraseThanks for your detailed solution mcleano. However, I'm more interested to know how to use erase:...
The string is messed up after eraseHi, mcleano What I'm trying to do is to tokenize the phrase. For example, if the phrase is "Davi...
The string is messed up after eraseHi, I was trying the erase method in the std::string. The string is "David Hardman Junior", and I t...
This user does not accept Private Messages