Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # include<stdio.h>
- # include "Set.c"
- int main(){
- Set* s1;
- Set_Create(s1);
- Set_Insert(s1, 11);
- Set_Insert(s1, 17);
- Set_Insert(s1, 19);
- Set_Insert(s1, 1);
- Set_Insert(s1, 13);
- Set_Insert(s1, 25);
- Set_Delete(s1, 11); //.. Doesn't work
- Set_Print(s1);
- if(Set_Contains(s1, 11) == TRUE){
- printf("Contains\n");
- }
- else {
- printf("Does not contains\n");
- }
- Set_Print(s1);
- Set_Clear(s1);
- Set* s2;
- Set_Create(s2); //.. Here error comes..
- Set_Insert(s2, 4);
- Set_Insert(s2, 7);
- Set_Insert(s2, 15);
- Set_Insert(s2, 25);
- Set_Insert(s2, 1);
- Set_Insert(s2, 4);
- Set_Print(s2);
- printf("\nEnd of Processing");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement