文章
1
粉丝
0
获赞
7
访问
473
#include<iostream>
#include<string.h>
#include<algorithm>
using namespace std;
//1025链表合并
struct node{
int data;
struct node *next;
};
int main(){
int m,n;
cin>>m;
struct node *headM, *headN;
headM=new node;
headN=new node;
headM->next=NULL;
headN->next=NULL;
struct node *pm=headM;
struct node *pn=headN;
for(int i=0;i<m;i++){
struct node *q=new node;
q->next=NULL;
cin>>q->data;
pm->next=q;
pm=q;
}
cin>>n;
for(int i=0;i<n;i++){
struct node *q=new node;
&nb...
登录后发布评论
暂无评论,来抢沙发