File handling program to count number of characters,words and lines of a string in c++ | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

File handling program to count number of characters,words and lines of a string in c++

Anyone who can write this program??

4th Feb 2018, 12:09 PM
Danish Shaikh
Danish Shaikh - avatar
1 Answer
+ 9
https://code.sololearn.com/cqO1Qr768Sla/?ref=app If it's word count, you can always split the line on whitespaces into multiple strings and consider the separated strings individual words.
4th Feb 2018, 12:46 PM
Hatsy Rei
Hatsy Rei - avatar