文章
11
粉丝
0
获赞
67
访问
1.2k
#include <stdio.h>
#include <stdlib.h>
typedef struct LNode{
int data;
struct LNode* next;
}LNode,*LinkList;
//尾插
void TailLinkList(LinkList L1,LinkList L2){
//s1链表
int s1;
scanf("%d",&s1);
L1 = (LNode*)malloc(sizeof(LNode));
L1->next = NULL;
LNode*r1,*p1;
r1=L1;
int i;
for(i=0;i<s1;i++){
p1 = (LNode*)malloc(sizeof(LNode));
scanf("%d ",&p1->data);
p1->next = NULL;
r1->next = p1;
r1=p1;
}
//s2链表
int s2;
scanf("...
登录后发布评论
暂无评论,来抢沙发