#2
笑傲2013-05-10 21:57
|
void unionL(List *La,List Lb)
{
int La_len,Lb_len,i;
ElemType e;
La_len = ListLength (*La);
Lb_len = ListLength (Lb);
for (i=1;i<Lb_len;i++)
{
GetElem(Lb,i,&e);
if(!LocateElem(*La,e))
ListInsert(La,++La_len,e);
}
}