//分析:无序两张表LA,LB,需要遍历LB查重再插入LA尾
#include<stdio.h>
#include<iostream.h>
#include<malloc.h>
#include<cstdlib>//包含exit头文件
#include<math.h>
#include<string.h>
#define OK 1
#define ERROR 0
#define LENGTH_A 5
#define LENGTH_B 3
typedef int Status;
typedef struct LNode
{
int data;
struct LNode *next;
}LNode,*LinkList;
Status CreateList(LinkList &L)
{
L=(LNode *)malloc(sizeof(LNode));
if(!L)return ERROR;
L->next=NULL;
return OK;
}
LNode *GetElem(LinkList &L,int i)