write a program to print how many times each word appear in the file.

Recommended Answers

All 2 Replies

Okay, I'm all done with it. What now?

What have you tried at this point? Please post your efforts.

If by file you mean text file, all it seems to require is:

* fstream
* if and else
* while loop

Read up on these topics (they should really be all your need), write an algorithm and tell us what you think, we can answer your questions once you show us you've done something.

Be a part of the DaniWeb community

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