Heap
오민
#define _CRT_SECURE_NO_WARNINGS #include #include #include #define MALLOC(p, s) \ if (!((p) = (nodePointer)malloc(s))) \ { \ fprintf(stderr, "Insufficient Memory"); \ exit(EXIT_FAILURE); \ } #define MAX_ELEMENTS 200 /* maximum heap size+l */ #define HEAP_FULL(n) (n == MAX_ELEMENTS - 1) #define HEAP_EMPTY(n) (!n) typedef struct { int key; char name[20]; char address[100]; } element; element heap[..