[Solved] How can I get the text input from the user and count the words i am searching [closed]


You could use the scanf-function to get text input from the user; the function will put it into a char array. (You would ask the user for the sentence as well as the word you are looking for)
Then you could use the KMP-algorithm to search for the given word in the sentence and just count the times the algorithm finds your word.

solved How can I get the text input from the user and count the words i am searching [closed]