| comparing words to those in a vector? hey everyone, this is my first post, and I have been learning c++ for a few months now (and boy, it's confusing!)
Right now, I"m trying to select words. If they are in a vector of words that are 'taboo' they are rejected. if not, they are placed into a map.
So far, I have been looping through the vector as i compare to each element, but for some reason, this is screwing up the count. Is comparing to each element the only way to go?
instead of counting each 'good' word, it prints out the map, but every word with an associative number incrementing by 4 is displayed. |