用C语言实现 链表删除指定节点
#include<stdio.h>
#include<stdlib.h>
struct Test
{
int data;
struct Test *next;
};
void printLine(struct Test *head)
{
struct Test *point;
point = head;
while(point != NULL)
{
printf("%d ",point->data);
point = point->next;
}
putchar('\n');
}
int printnum(struct Test *head)
{
int sum;
while(head != NULL)
{
head = head -> next;
sum ++;
}
return sum;
}
int searchnum(struct Test *head,int data)
{
while(he