帮忙解释一下这一段代码的步骤
Voiddeletelist(Sqlist&L,ElemTypex){intcount=0;for(i=0;i<=L.length-1;i++)if(L.elem[i]=...
Void deletelist (Sqlist &L, ElemType x)
{
int count=0;
for (i=0;i<=L.length-1;i++)
if (L.elem[i]==x)
count++;
else
L.elem[i-count]=L.elem[i]; } 展开
for (i=0;i<=L.length-1;i++)
if (L.elem[i]==x)
count++;
else
L.elem[i-count]=L.elem[i]; } 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询