stack ADT 썸네일형 리스트형 Stack ADT(Abstract Data Type) Stack ADT Definitions // Stack ADT Type Definitions typedef struct node { void* dataPtr; struct node* link; } STACK_NODE; typedef struct { int count; STACK_NODE* top; } STACK; ADT Create Stack STACK* createStack (void) { // Local Definitions STACK* stack; printf("===== createStack()\n"); // Statements stack = (STACK*)malloc(sizeof(STACK)); if(stack) { stack->count = 0; stack->top = NULL; } // if.. 더보기 이전 1 다음