블로그
- 연결된 스택 프로그램 (LinkedStackType *s, element data) { StackNode *temp = (StackNode *)malloc(sizeof(StackNode)); if (temp ==NULL) { fprintf(stderr, "메모리할당오류"); return; } else { temp->data = data; temp->link = s->top
- 연결된 큐 프로그램 #include #include #include typedef struct QueueNode { struct QueueNode *link; int data; }QueueNode; typedef = data; temp->link = NULL; if .......
- c언어 자료구조 라인 에디터 프로그램 ; struct ListNode *link; }ListNode; typedef struct { ListNode *head; int length; }LinkedListType; void error(const char *message) { fprintf(stderr, "%s", message); exit(1); } void insert_node(ListNode **