Somebody show me how to create a program that counts the no. Of words i have typed using c++ language | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Somebody show me how to create a program that counts the no. Of words i have typed using c++ language

brain teaser

5th Apr 2018, 8:34 PM
Zacky aduoli
Zacky aduoli - avatar
5 Answers
+ 2
Thank you zeke
25th Apr 2018, 2:48 PM
Zacky aduoli
Zacky aduoli - avatar
+ 1
I don't know about c++,but you'll need access to the file holding the code,without that access,which might be impossible here,you can't in js.besides you can click on code details to see code size on Sololearn
5th Apr 2018, 8:41 PM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 1
You can use the getline() function and then store it into a string variable. Then you'll have to separate that string using space as the delimiter.
6th Apr 2018, 3:41 AM
Zeke Williams
Zeke Williams - avatar
+ 1
Oh really
20th Apr 2018, 12:08 PM
Zacky aduoli
Zacky aduoli - avatar
+ 1
Zacky aduoli go here and look at all the string functions to see which one will be helpful https://www.cplusplus.com/reference/string
20th Apr 2018, 1:04 PM
Zeke Williams
Zeke Williams - avatar