Question: Write a Simple C++ program that reads text (character data) from the file. Words in the file are separated by white spaces. The program shall
Write a Simple C++ program that reads text (character data) from the file. Words in the file are separated by white spaces.
The program shall find the length of each word and save the lengths in an array.
(!) Read only character data not integers
(2) Find length and save in an array
(3) Please Follow the Sample Output
(4) Please do not use strings and built in functions
Example
Text.txt: 47 A QUICK 12345 JUMPS OVER 50012 21212 LAZY 11111
Original text: A QUICK JUMPS OVER LAZY
Array of Lengths: 1 5 5 4 4
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
