counting each occurenc of each word in a file
hey fellas:
this is a small part of my big project.. need suggestions on how to count all occurences of each word ina file.. sort of a bucket sort of unknown preportions..
here is what i did and i can't figure out why but it did not work..
i set up a linked list containing a name and an integer value.. used for a counter.. each time i found a duplicate word by strcmp'n my input to each value in the linked list i'd increment the counter or add a new node.. now that did not work.. i would end up with two nodes for 'jerry' or 'tom'.. for whatever reason...
thanks!