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...:>
I'm assuming you're trying to assign the popped value to nPopFront?
bool stack::popFront(int& nPopFront) { //items[4] = {4,3,2,1} if ( intFrontPtr < intBackPtr ) { nPopFront = *intFrontPtr; ++intFrontPtr; } return true; }