For Daily Free Study Material Join wiredfaculty Whatsapp Group | Download Android App | Ncert Book Download
Sponsor Area
Write function definition for SUCCESS( ) in C++ to read the content of a text file STORY.TXT, count the presence of word STORY and display the number of occurrence of this word.Note :– The word STORY should be an independent word– Ignore type cases (i.e. lower/upper case)Example :If the content of the file STORY.TXT is as follows:
Success shows others that we can do it. It ispossible to achieve success with hard work. Lotof money does not mean SUCCESS.
The function SUCCESS () should display the following:
3