c++ code to count and print the number of lines,words,and word frequencies in the file

Recommended Answers

wc (the word count, not the closet one) has been around for decades now. Here's the source.

I'm sure you know to re-use code when you can. Word frequency seems to be done and done too.

Jump to Post

All 2 Replies

Also, please don't ask us to do your work or homework for you without making an honest effort to solve the problem first. @rproffitt was being nice in providing a couple of relevant links for you to review. In any case, these are very simple problems. The math is well-known. You just need to apply that to some simple (very simple) computer code.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.