Standard C++ Foundation

The home of Standard C++ on the web — news, status and discussion about the C++ standard on all compilers and platforms.

  • Word Counting in C++: Implementing a Simple Word Counter—Jonathan Boccara
    http://isocpp.org/feeder/?FeederAction=clicked&feed=All+Posts&seed=http%3A%2F%2Fisocpp.org%2Fblog%2F2

    Useful to learn.

    Word Counting in C++: Implementing a Simple Word Counter by Jonathan Boccara

    From the article:

    Word counts can reveal information about your code, or make an unknown piece of code more expressive to your eyes. There are online tools to count words in generic text, but most of those I’ve come across are designed around counting words in text and SEO (Search Engine Optimization). Since analysing source code is not the same thing as analysing the text of a blog post, let’s design a tool fit for our needs of counting words in code. This way, we will be able to make it evolve when we discover new tasks to try with our word counter. Another reason to write our own word counter is that it will let us practice interface design, and also STL algorithms, (...)

    #News,Articles&_Books,