views:

122

answers:

2
+1  Q: 

Add to a hashtable

I am trying to implement a hash table

+1  A: 

You're trying to add a const stock value to your item * hashtable. If you need to add a stock to the table, make an item struct out of it first, or change the type of the hashtable.

jtbandes
Create a new `item` struct, and set its symbol, sharePrice, name, priceDate, and items to those of the stock. Or, make the hashtable a `stock*` instead of `item*` or something like that.
jtbandes
I think i got it.
Corey
I assume you have a textbook? The information is probably in there. I don't want to write your homework for you. On the topic, are you taking this CS260 at PCC?
jtbandes
I did, but we had different assignments.
jtbandes
A: 

Thank you I think its working good now!

Corey
If it is then you should accept @jtbandes answer. Reward him for helping you :).
quark