按值查找:找x在表中的位置,若查找成功 返回表项的位置,否则返回1 int Find( seqlist &l, listData x) inti=0 while (i< llength & ldatail=X) i++; if(i< Llength )return i else return -1▪ 按值查找:找x在表中的位置,若查找成功, 返回表项的位置,否则返回-1 int Find ( SeqList &L, ListData x ) { int i = 0; while ( i < L.length && L.data[i] != x ) i++; if ( i < L.length ) return i; else return -1; }