Question:
A text file named CONTENTS.TXT contains some text. Write a user-defined function LongWords() in C++ which display all such words of the file whose length is more than 9 alphabets. For example: if the file CONTENTS.TXT contains:
“Conditional statements of C++ programming language are if and switch”
Then the function LongWords() should display the output as:
Conditional
statements
programming
C. Sir| Created: 8-Apr-2019 | Updated: 10-Apr-2019|CBSE12A-2019
