Hello guys, I need to make a program that counts the number of times a particular word appears in a text file on a line. For example, the User chooses the word "test" to be told at the end of each line of txt should show how many times that word appeared in the line. I started doing the program but I have questions regarding how this string and look. Would make str str?
Thundermax
0
Light Poster
Recommended Answers
Jump to PostWould make str str?
I don't understand your question, but if you're asking whether you want to use the
strstr
function then the answer is yes.strstr
will return a pointer to the matched string, orNULL
if it wasn't found. So you can repeatedly …
All 4 Replies
gayatrifabricat
0
Newbie Poster
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
Thundermax
0
Light Poster
Adak
419
Nearly a Posting Virtuoso
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.