Advertisement
Ruggeri96

Untitled

Jan 22nd, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.70 KB | None | 0 0
  1. // List.h
  2. #ifndef LIST_H_INCLUDED
  3. #define LIST_H_INCLUDED
  4.  
  5. // Specifico quale versione includo
  6. #include "Item.h"
  7.  
  8. // Lista non ordinata
  9. typedef struct list *LIST;
  10.  
  11. void listInsHead(LIST l, Item val);
  12. Item listSearch(LIST l, Key k);
  13. void listDelKey(LIST l, Key k);
  14.  
  15.  
  16.  
  17.  
  18.  
  19. #endif // LIST_H_INCLUDED
  20.  
  21.  
  22. // Set.h
  23. #ifndef SET_H_INCLUDED
  24. #define SET_H_INCLUDED
  25.  
  26. // Specifico quale versione includo
  27. #include "Item.h"
  28.  
  29. typedef struct set* SET;
  30.  
  31. SET SETinit(int maxN);
  32. void SETfill(SET s, Item val);
  33. int SETsearch(SET s, Key k);
  34. SET SETunion(SET s1, SET s2);
  35. SET SETintersection(SET s1, SET s2);
  36. int SETsize(SET s);
  37. int SETempty(SET s);
  38. void SETdisplay(SET s);
  39.  
  40.  
  41.  
  42.  
  43. #endif // SET_H_INCLUDED
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement