Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef SET_H__
- #define SET_H__
- typedef enum boolean {FALSE, TRUE} Boolean;
- typedef int SetEntry;
- typedef struct set {
- SetEntry data;
- set* next;
- int size;
- };
- typedef struct set Set;
- void Set_Create (Set* set);
- void Set_Clear (Set* set);
- int Set_Size (const Set* set);
- Boolean Set_Empty (const Set* set);
- Boolean Set_Insert (Set* set, SetEntry value);
- Boolean Set_Delete (Set* set, SetEntry value);
- Boolean Set_Contains (const Set* set, SetEntry value);
- void Set_Union (const Set* set1, const Set* set2, Set* ret);
- void Set_Intersection (const Set* set1, const Set* set2, Set* ret);
- double Set_Similarity (const Set* set1, const Set* set2);
- void Set_Print (const Set* set);
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement