Quick Print – Computer Sir Ki Class

Login


Lost your password?

Don't have an account ?
Register (It's FREE) ×
  


Shop
siteicon
Solved Problem Solved Problem#CPP#7020

Problem Statement - 04A-2019S-C2

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

Solution