C++高手来帮我看看啊我刚刚开始
我老公写的不知道对不对
struct linka *DeleterLinkElement(struct linka *head,int a,int b)
{
int flag = 0;
struct linka *ls_var1,*ls_var2;
struct linka *ls_tmp,*ls_cur,*next;
if (head == NULL)
{
return head;
}
if (head->number >= b)
{
return head;
}
else if (head->number next != NULL;ls_cur = next)
{
if (ls_cur...全部
我老公写的不知道对不对
struct linka *DeleterLinkElement(struct linka *head,int a,int b)
{
int flag = 0;
struct linka *ls_var1,*ls_var2;
struct linka *ls_tmp,*ls_cur,*next;
if (head == NULL)
{
return head;
}
if (head->number >= b)
{
return head;
}
else if (head->number next != NULL;ls_cur = next)
{
if (ls_cur->number number > a) && (ls_cur->number next;
continue;
}
else if (ls_cur->number > a)
{
ls_var1->next = ls_cur;
break;
}
printf("number=%d。
\n",ls_cur->number);
next = ls_cur->next;
}
}
else
{
for(ls_cur=head;ls_cur->next != NULL;ls_cur = next)
{
if ((ls_cur->number > a) && (ls_cur->number next;
continue;
}
else if (ls_cur->number >= b)
{
return ls_cur;
}
}
}
return ls_var2;
}
。
收起