Комментарии:
I’m having a strange problem where my word count function is counting trailing white spaces as a word
For example using strtok I pass a string that would say “hello my name is \nNice to meet you” (assume the \n is an actually enter key on a .txt file and the trailing spaces r at the end of the line) my word count would return 5 when there’s only 4 words. Any help?
Getting back to learning after a long break!!
I'm a slow learner but learning with each video
What if I am trying to count the words from a string already obtained from the user via get_string?
I am getting confused with what the "char s[] = ?" would equal in this scenario.
Video was super helpful at explaining the why behind all your lines, thank you!
Thank you, it helps a lot !
Ответитьdoes this work with non predefined words? like if i make the user input a text?
ОтветитьDamn, stuff's well explained, thanks :)
ОтветитьDo you have a video covering how to save a full sentence input and then separate each word into an array?
ОтветитьHow if there is a nonwords at the beginning of the string?
Ответить