作者XDucka (Duck)
看板EE_DSnP
标题[问题] hw2--moveToHistory
时间Mon Oct 15 00:16:46 2012
在hw2里的CmdParser::moveToHistory(int index)
的注解
// Assign _historyIdx to index at the end.
//
// [Note] index should not = _historyIdx
为什麽要把_historyIdx的值assign给 index阿
这个fucntion不是call by value吗
传给index等到fuction结束他不就消失了
到底是要把index assign给_historyIdx
还是要用static的方法记住index勒
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 114.25.230.204
1F:推 ric2k1:我想是英文的表达有误会... orz. 我的意思是: 10/15 00:33
2F:推 ric2k1:把 _historyIdx 设成 index 的值 XD // _historyIdx= index 10/15 00:34
3F:→ XDucka:XD 仔细想想也对欸XD 10/15 00:46