Garbage values when C++ Operator Overloading
<p>Im just getting garbage values. And it is wierd the debugger shows the correct values. But its printing weird stuff insted...</p>

<p>this frist part is fine. Essentially, It just takes me to my problem. I have what I need to print inside that h.hashtable[hashIndex] array.</p>

<pre><code>ostream&amp; operator&lt;&lt;(ostream&amp; out, const hashmap&amp; h)
{
        const char *getSymbol = NULL;
        for ( int hashIndex = 0; hashIndex &lt; maxSize; hashIndex++ )
        {   
            getSymbol = h.hashTable[hashIndex].getSymbol();
            if ( getSymbol ) // Find the one I added.
            {
                h.hashTable-&gt;display(out);
                    return out &lt;&lt; h.hashTable[hashIndex];
            }
        }
        return out;
}
</code></pre>
