Advertisement
dorinel_filip

Untitled

Dec 5th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.57 KB | None | 0 0
  1. #include <stdio.h>
  2.  
  3. #define SET_SIZE 100
  4. typedef unsigned char SET[SET_SIZE];
  5.  
  6. void insert_in_set(SET s, unsigned int n) {
  7.     // echivalent cu s[n/8] = s[n/8] | (1 << (n % 8));
  8.     s[n/8] |= (1 << (n % 8));
  9. }
  10.  
  11. void delete_from_set(SET s, unsigned int n) {
  12.  
  13. }
  14.  
  15.  
  16. int is_in_set(SET s, unsigned int n) {
  17.  
  18. }
  19.  
  20. int card_set(SET s) {
  21.  
  22. }
  23.  
  24. int read_set(SET s) {
  25.  
  26. }
  27.  
  28. void print_set(SET s) {
  29.  
  30. }
  31.  
  32. void merge_set(SET a, SET b, SET c) {
  33.  
  34. }
  35.  
  36. void intersect_set(SET a, SET b, SET c) {
  37.    
  38. }
  39.  
  40. void diff_set(SET a, SET b, SET c) {
  41.    
  42. }
  43.  
  44. int main() {
  45.     return 0;
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement