cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
-
-
May 14, 2012 at 9:25pm UTC
Oskar Liblik
(4)
---
Last edited on
Jun 3, 2012 at 9:47pm UTC
May 14, 2012 at 9:43pm UTC
BlackSheep
(424)
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.