看板 EE_DSnP 關於我們 聯絡資訊
在 getMemRecycleList 呼叫 _recycleList[m].getList(n) 在getList中 它回傳的是MemRecycleList<T>* 想請問說它到底要回傳什麼呢@@" 裡面的要求寫說: // Go through this and _nextList, // find out a recycle list whose "_arrSize" == "n" // If not found, create a new MemRecycleList with _arrSize = n // and add to the last MemRecycleList // So, should never return NULL 這邊的NULL跟原始reference code所說的return 0有一樣嗎? 我個人是覺得當找不到recyclist中有先前被回收的資料就要return 0 那有找到的話 是要retrurn什麼東西咧@__@ -- 真覺得這個板是賺p幣的好所在 -- -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.4.235 ※ 編輯: BattleRoyale 來自: 140.112.4.235 (05/01 22:03)