已知数据 3, 4, -2, 0, 8 存储在顺序存储结构中,编程实现删除x的操作为_______。 (其中:数据从顺序存储结构的第0个位置开始存储)
A、void del(SqList L, elemtype x) { int i=0, bfind=0; while(i<l.length-1) { if(bfind="=0" && x="=L.data[i])" bfind="1;" if(bfind){l.data[i]="L.data[i+1];}" i++; }> B、void del(SqList L,elemtype x) { int i=0; while(i<l.length) { if(x="=L.data[i])L.data[i]=0;" i++; }> C、void del(SqList L, elemtype x) { int i=0; while(i<l.length) { if(x="=L.data[i])L.data[i]=-1;" i++; }> D、void del(SqList L, elemtype x) { int i=L.length; while(i>0 ) { if(x!=L.data[i])L.data[i-1]=L.data[i]; i--; } }