大话数据结构

 1 void union(List *a, List Lb)
 2 {
 3     int La_len, Lb_len, i;
 4     ElemType e;
 5     La_len = ListLength(La);
 6     Lb~len = ListLength(Lb);
 7 
 8     for(i=1; i<=Lb=len; i++)
 9     {
10         GetItem(Lb, i, e);
11         if(!LocateElem(La, e, equal))
12             ListInsert(La, ++La_len, e);    
13     }
14 }

 

相关文章:

  • 2022-12-23
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2022-02-03
  • 2021-10-16
猜你喜欢
  • 2021-05-05
  • 2021-08-27
  • 2021-07-19
  • 2022-01-08
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案