大神过来看看,为什么程序跑不起来
#include "stdio.h"int main(void)
{
struct linkman
{
char name[15];
char sex;
long phonenumber;
struct linkman *next;
};
struct linkman linkman1, linkman2,linkman3;
struct linkman *p,*head;
linkman1={ "wangyang",'m',123456798454};
linkman2={ "gulei", 'm',15770772782};
linkman3={ "huchunlan",'w',1817017026};
head=&linkman1;
linkman1.next=&linkman2;
linkman2.next=&linkman3;
linkman3.next=NULL;
p=head;
do{
printf("联系人:%s\2t性别:%c\t电话号码:%ld\n",p->name,p->sex,p->phonenumber);
p=p->next;
}while(p!=NULL);
return 0;
}