注册 登录
编程论坛 数据结构与算法

新手,求解

wxmshawn 发布于 2012-10-14 11:58, 345 次点击
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,完整的程序怎么写
2 回复
#2
寒风中的细雨2012-10-14 12:24
#3
爱闹的娃2012-10-14 22:08
这个关键的代码都给你了啊.....你得看看你代码里面的LocateElem、ListInsert
  等的函数的具体实现....
1