int DelSameNode(stru *head)
{
stru *start,*nextnode;
int i = 0;
start = head;
while(start->next != NULL)
{
nextnode = start->next;
if(nextnode->a == start->a)
{
start->next = nextnode->next;
//严谨一点的话可以加一个释放操作;
free(next);
next = NULL;
}
else
{
start = start->next;
i++;
}
}
return i+1;
}