반응형 문자열 중복 삭제1 연결 리스트 관련 문자열 중복 삭제 프로그램 #include #include #include typedef struct list *linked_list; struct list{ int info; linked_list next; }; void print(linked_list head); linked_list insert(void); linked_list erase(linked_list head); linked_list insert(void) { linked_list head, tail, temp; char c; c=getche(); temp = (linked_list)malloc(sizeof(struct list)); temp->next = NULL; temp->info = c; head = tail = temp; while(c != '\r') { .. 2007. 3. 27. 이전 1 다음 반응형