#include #include #include #include using namespace std; typedef int ElemType; //假设线性表中的元素均为整型 typedef struct { ElemType* elem; //存储空间基地址 int length; //表中元素的个数 } SqList; //顺序表类型定义 int ListCreate_Sq(SqList &L,int n) { L.elem=new ElemType[n]; for(int i=0; i>L.elem[i]; L.length=n; return 1; } void ListPrintf_Sq(SqList &L) { ElemType *p; cout<>a>>b; ListCreate_Sq(La,a); ListCreate_Sq(Lb,b); Listjiao(La,Lb,L1); Listbing(La,Lb,L2); Listcha(La,Lb,L3); ListPrintf_Sq(L1); ListPrintf_Sq(L2); ListPrintf_Sq(L3); return 0; }