-

---
Last edited on
You could use an std::map with the word as the key and the count as the value? You don't even have to check if the word exists already, or initialize anything, since ints will automatically initialize to 0 upon construction.
Topic archived. No new replies allowed.