Array PopFront Method C++

后端 未结 5 2029
说谎
说谎 2021-01-29 15:48

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...:

5条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-29 16:06

    bool quack::popFront(int& nPopFront)
    {
       if(items.n==0) throw WhateverYouUseToSignalError;
       nPopFront = items[0];
       for (int =0;i

提交回复
热议问题