ok thanks so much for your input everyone, you really saved me.
It works, but i think its shoving all names into each one of the 6 buckets. because no matter what i change the "pLocal =...
Type: Posts; User: Butters007
ok thanks so much for your input everyone, you really saved me.
It works, but i think its shoving all names into each one of the 6 buckets. because no matter what i change the "pLocal =...
i'll try that stuff out.
to tell you the truth, my teacher wrote all that malloc stuff and casting stuff.
and yes i was trying to have a string of a single character because the program was...
I am sopossed to edit a prebuilt program to include some extra stuff for a hash table, it is not done yet. When i compile it, i get errors on line 139.
"operands of = have illegal types 'array...
thanks works like a charm
an input line would be this:
John Van Damm;123 Fake Street;Coon Rapids
the only toruble is breaking up the name
This code works for names which have 1 word lastnames, but not for 2 word last names (such as Van Damm). How can I get the whole last name?
while(fgets(line, sizeof(line),...
i just dont want a large linked list.... where do the 6 buckets come into play? thats the thing, i dont know how to insert it. say i get "14" as a key. how do i insert a the name/address/stuff...
I am reading from a file 3 things, name, street, and address. And I want to put it in a hash table with 6 buckets for easy access. I searched around and got some code which started me out. but...
I have a text file that has about 50 lines of text like this:
Nancy Bush;2607 Avenue;Atlanta
I am sopossed to put it into a hashtable, but right now im just reading in the text.
My snipped of...