作者BattleRoyale (翔焰)
看板EE_DSnP
标题[问题] getlist的回传到底是?
时间Thu May 1 21:45:15 2008
在
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)