文章分类 -  链表

学好
摘要:#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(& 阅读全文
posted @ 2014-03-28 15:23 我喜欢旅行 阅读(132) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示