C++ Practical
Text File Processing Snippet-9
Count A Particular Word
Question : Write a function in C++ to print the count of the word "is" as an independent word in a text file DIALOG.TXT
e.g. if the content of the file is:
"This is his book. Is this book good?"
then the output of the program should be 2
Answer: