I personally would use the string since you only need to check the whole word rather than each letter in the word. There are a lot of tutorials out there, but the basic idea is to use getline() to read the whole sentence then you can use substring or stringtokens to split words from the sentence.
EDIT: My personal suggestion is that if you just start learning these things, don't just try to write the whole program at once. Try testing simple one(s) first to make sure you get the specific part(s) to work correctly, then you can expand or combine with other simple parts.


LinkBack URL
About LinkBacks




Reply With Quote

