Increasing array size
From: Ioannis Hadjichambis (hadjici2_at_cs.man.ac.uk)
Date: 11/30/04
- Next message: Chris Croughton: "Re: simple file system"
- Previous message: Chris Croughton: "Re: OT: Unix C programming for finding file"
- Next in thread: Christian Staudenmayer: "Re: Increasing array size"
- Reply: Christian Staudenmayer: "Re: Increasing array size"
- Reply: dandelion: "Re: Increasing array size"
- Reply: EventHelix.com: "Re: Increasing array size"
- Reply: CBFalconer: "Re: Increasing array size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Nov 2004 10:50:05 +0000
I am trying to implement a hash-table and I would like to rehash it when
it starts to fill up. I am implementing the hash-table with an array
of linked lists. Now for me to increase the size of the hash-table I
must create a new array twice the size of the one before but the array
only accepts an imediate number eg array[1000] and will not accept a
variable eg array[count]. Does anyone know how to solve this problem?
thanks...
- Next message: Chris Croughton: "Re: simple file system"
- Previous message: Chris Croughton: "Re: OT: Unix C programming for finding file"
- Next in thread: Christian Staudenmayer: "Re: Increasing array size"
- Reply: Christian Staudenmayer: "Re: Increasing array size"
- Reply: dandelion: "Re: Increasing array size"
- Reply: EventHelix.com: "Re: Increasing array size"
- Reply: CBFalconer: "Re: Increasing array size"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|