int elem = 0; while(!pStack -> stackEmpty()) { pStack -> pop(num); cout << num[elem]; }
如题,没有num++语句,pop是在栈里怎么移动的?
我知道了,实例演示二中有 pop函数是: if(stackEmpty()) { return false; } m_iTop--; elem = m_pBuffer[m_iTop]; return true;