title: Linear Probing Hash Function not working?
body: <p>What am i doing wrong with my linear probing function?</p>
  
  <pre><code>bool HashTable_lp::insert( const string &amp; x )
  {
      // Insert x as active
      int currentPos = findPos( x );
      if( isActive( currentPos ) )
          return true;
      array[ currentPos ] = HashEntry( x, ACTIVE );
  
      if( ++currentSize &gt; array.size( ) / 2 )
          rehash( );
      return false;
  }
  </code></pre>