Array PopFront Method C++
<p>Trying not to lose it here. As you can see below I have assigned intFrontPtr to point to the first cell in the array. And intBackPtr to point to the last cell in the array...:</p>

<pre><code>bool quack::popFront(int&amp; nPopFront)
{   
    nPopFront = items[top+1].n;
    if ( count &gt;= maxSize ) return false;
    else
    {
     items[0].n  = nPopFront;
     intFrontPtr = &amp;items[0].n;
     intBackPtr  = &amp;items[count-1].n;
    }
    for (int temp; intFrontPtr &lt; intBackPtr ;)
    {
      ++intFrontPtr;
      temp = *intFrontPtr;
     *intFrontPtr = temp;
    }
    return true;
}
</code></pre>

<p>In the else statement I'm simply reassigning to ensure that my ptrs are where I want them. For some reason I'm popping off the back instead of off the front.</p>

<p>Anyone care to explain?</p>
