Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #define SET_SIZE 100
- typedef unsigned char SET[SET_SIZE];
- void insert_in_set(SET s, unsigned int n) {
- // echivalent cu s[n/8] = s[n/8] | (1 << (n % 8));
- s[n/8] |= (1 << (n % 8));
- }
- void delete_from_set(SET s, unsigned int n) {
- }
- int is_in_set(SET s, unsigned int n) {
- }
- int card_set(SET s) {
- }
- int read_set(SET s) {
- }
- void print_set(SET s) {
- }
- void merge_set(SET a, SET b, SET c) {
- }
- void intersect_set(SET a, SET b, SET c) {
- }
- void diff_set(SET a, SET b, SET c) {
- }
- int main() {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement