i am a beginner, i am doing a program that user can input the filename, and i can run in to count the word frequency using link list.
i have 5 list operation, like create, add, search, print, and delete.
BUT the main problem i faced is when doing the struct, i don't know how to define the structure? if i using char* in word, then i don't know how to get the string(word) into the link list when i using char* to define now....
anybody can help me. really don't know how to do
struct Node {
int count;
char* word;
struct Node* next;
struct Node* theList;
};