Advertisement
eduardovp97

conjunto.h

Oct 24th, 2016
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.66 KB | None | 0 0
  1. #ifndef CONJUNTO_H
  2. #define CONJUNTO_H
  3.  
  4. typedef int TInfo;
  5.  
  6. typedef struct Node{
  7.     TInfo value;
  8.     struct Node* next;
  9. }TNode;
  10.  
  11. typedef struct Conjunto{
  12.     TNode *first;
  13.     TNode *last;
  14.     int nElem;
  15. }TConjunto;
  16.  
  17. void unionAux(TConjunto* a,TConjunto* b,TConjunto* c);
  18. void interseccion(TConjunto* a,TConjunto* b,TConjunto* c);
  19. void diferencia(TConjunto* a,TConjunto* b,TConjunto* c);
  20. int miembro(TConjunto *a, TInfo x);
  21. void initConjunto(TConjunto *a);
  22. void insertar(TConjunto *a, TInfo x);
  23. void remover(TConjunto *a, TInfo x);
  24. int minimo(TConjunto *a);
  25. int maximo(TConjunto *a);
  26. int igual(TConjunto* a,TConjunto* b);
  27. void imprimir(TConjunto *a);
  28.  
  29. #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement