大话数据结构
void union(List *a, List Lb)
{
int La_len, Lb_len, i;
ElemType e;
La_len = ListLength(La);
Lb~len = ListLength(Lb); for(i=; i<=Lb=len; i++)
{
GetItem(Lb, i, e);
if(!LocateElem(La, e, equal))
ListInsert(La, ++La_len, e);
}
}
大话数据结构
void union(List *a, List Lb)
{
int La_len, Lb_len, i;
ElemType e;
La_len = ListLength(La);
Lb~len = ListLength(Lb); for(i=; i<=Lb=len; i++)
{
GetItem(Lb, i, e);
if(!LocateElem(La, e, equal))
ListInsert(La, ++La_len, e);
}
}