正在加载图片...
数据结构 例2-1利用两个线性表LA和LB分别表示两个集合A 和B(即线性表中的数据元素即为集合中的成员), 现要求一个新的集合A=AUB void union (List &La, List Lb) La_len=ListLength (Lai 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)数据结构 tjm
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有