任务详情
输入一个固定长度的数组,并输入一个要查找的数,给出能不能检索到的伪代码并测试
伪代码
set found to FALSE
while (position <6 AND found is FALSE)
if (numbers[position]equals searchltem)
set found to ture
else
set position to position +1
测试
查找95
position=0
number[position]!=95
position=1
number[position]!=95
position=2
number[position]=95