title: Hashtable chaining on collisions. How do I create an array of hashtable pointers to linked list objects?
body: <p>It sounds so simple to do, but I cannot figure out the correct code to implement it.</p>
  <p>I currently have a doubly linked list class that works well and has been fully tested.  I do not intend to change anything related to this class.</p>
  <p>without listing my entire program, within my Hashtable class header file, I have...</p>
  <pre><code>#define HASHTABLESIZE 15
  
  class Hashtable {
  
          public:
                  typical public methods listed here
          private:
                  Data *hashtable[HASHTABLESIZE];
  }
  </code></pre>
  <p>and my cpp file...</p>
  <pre><code>Hashtable::Hashtable() {
  
          LinkedList list[HASHTABLESIZE];
  
          for (int i = 0; i &lt; HASHTABLESIZE; i++) {
                  this-&gt;hashtable[i] = list[i];
          }
  }
  </code></pre>
  <p>This is where i am stuck...</p>
  <pre><code>this-&gt;hashtable[i] = list[i];
  </code></pre>
  <p>I want an array of pointers to linked list objects.  Any help is appreciated.</p>