I need the coding for the following question in C:
Read from a file (.txt file) and count the number of times the word "a", "is", "the", "and", "that", and "this" occurs.
junezy4 0 Newbie Poster
Recommended Answers
Jump to PostOne way to do that is to create a structure that contains the strings and an integer
struct words { char* word; int count; };
Now make a simple array of these structures and initialize all counts to 0 and character arrays to the words in the …
All 3 Replies
gerard4143 371 Nearly a Posting Maven
Ancient Dragon 5,243 Achieved Level 70 Team Colleague Featured Poster
targ2002 -2 Newbie Poster
WaltP commented: Duh!!! What a worthless first post. -2
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.