函数main()的功能是在带头结点的单链表中查找数据域中值最小的结点。请填空。
#include<stdio.h>
struct node
int data;
struct node*next:
;
int min(struct node*first)/*指针first为链表头指针*/
strct node *p;int m;
p=first->next;m=p->data;p=p->next;
for(; p!=NULL;p=)
if(p->datadata<m)m=p->data;
return m;