Data File Handling - Text File (SD/4/B/168)

Write a function CountHisHer() in C++ which reads the contents of a text file "NOTES.TXT" and counts the words His and Her (not case sensitive).

For e.g.


Vinay has gone to his Aunt's house. Her Aunt's name is Ramya. Her house is 20 kilometer away from his house.

The function should display the output as:

Count of His  : 2
Count of Her : 2



Click Here for Solution



No comments

Post your comments

Powered by Blogger.