![]() |
#2
寒风中的细雨2012-10-14 12:24
|
void union(List &La,List &Lb){
La_len=ListLength(La);
Lb_len=ListLength(Lb);
for(i=1;i<=Lb_len;i++){
GetElem(Lb,i,e)
if(!LocateElem(La,e,equal))ListInsert(La,++La_len,e);
}
}
集合A=A并B,完整的程序怎么写