initialize a 5 element 循环数组 L[5]:0,1,2,3,4, while scan the list, put element one by one to the 循环数组, when finished, return the next element value. For example: the last element put to the 循环数组 is L[3], return L[4]. [#4014527@0 -ROLIA.NET 相约加拿大网上社区 之 枫下论坛 & 枫下部落, 枫下论坛主坛 ]
initialize a 5 element 循环数组 L[5]:0,1,2,3,4, while scan the list, put element one by one to the 循环数组, when finished, return the next element value. For example: the last element put to the 循环数组 is L[3], return L[4].
by
647i
(流浪的步行万里)
at
2007.10.24 22:13
(#4014527@0)
Also, you need to maintain a 'i', increase 'i' when scan the list. make sure 'i' > 5.