编写函数,将一个单链表的重复结点删除,例如原链表中存放的结点若为3,5,1,3,6,7,3,9,则删除后链表中结点为3,5,1,6,7,9
#include <stdio.h>
#include <stdlib.h>
typedef struct node{
int data;
node *next;
}Node;
/*链表创建*/
Node *Creat()
{
Node *head,*tail,*p;
int x;
head=(Node *)malloc(sizeof(Node));
head->next=NULL;
tail=head