正在加载图片...
按值查找:判断x是否在表中 int IsIn( seqlist &l, listDatax) i inti=0, found=0; while(i< llength &&! found if(L data!=x)i++; else found=l return found按值查找:判断x是否在表中 int IsIn ( SeqList &L, ListData x ) { int i = 0, found=0; while ( i < L.length &&!found ) if(L.data[i] != x ) i++; else found=1; return found; }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有