文章分类 - 链表
学好
摘要:#include #include struct node{int data;struct node *next;};struct node *creat1(int n){struct node *head, *tail, *p;int i;head=(struct node *)malloc(sizeof(struct node));head->next=NULL;tail=head;for(i=1; idata ); p->next =NULL; tail->next =p; tail=p;}return (head);}void main(){int x;scanf(&
阅读全文