感覺遍歷函數這樣寫比較好理解,有錯誤望指出
void MyQueue::QueueTraverse()
{
for(int i = 0 ; i < m_iQueueLen; i++)
{
cout << m_pQueue[(m_iHead+i)%m_iQueueCapacity]<<endl;
}
}
void MyQueue::QueueTraverse()
{
for(int i = 0 ; i < m_iQueueLen; i++)
{
cout << m_pQueue[(m_iHead+i)%m_iQueueCapacity]<<endl;
}
}
2019-01-08
自己實現了其中的所有代碼,請各位參考:https://blog.csdn.net/feiyanjia/article/details/80988162
2018-07-11
老師講的很好,從C++過來感覺學到了很多知識,習慣性看下評論,看大家打得烏煙瘴氣,我覺得沒啥必要,好好跟著James老師學,好好敲代碼就好了,祝大家學習順利!我們數據結構最后一章見
2018-04-19