Develop
2013.04.23 14:56
[c] 더블(이중) 연결리스트 예제..
조회 수 7475 댓글 0
첨부 '1' |
---|
두가지 이중 연결 리스트.. (double linked list)
# 파일명 : list1.c
더블 연결 리스트 (추가, 삭제, 탐색)
typedef struct _node{ int tag; int x; int y; struct _node *prev; struct _node *next; }* node; node head,tail; int list_cnt; void add_list(node ptr); void make_node(int tag, int x, int y); node find_ptr(int idx); void del_all_list();
# 파일명 : list2.c
인덱스가 여러 개(배열)인 더블 연결 리스트 (추가, 삭제, 탐색)
#define MAXY 1024 typedef struct _node{ int ye; // y end float xs; // x start float sp; // slope struct _node *prev; struct _node *next; }* node; node head[MAXY]; node head[MAXY]; void add_list(int idx, node ptr); void make_node(int idx, int ye, float xs, float sp); node find_ptr(int idx, int idx2); void del_list(int idx); void del_all_list();
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
553 | Develop |
[c] 서비스 거부 공격(DoS;Denial of Service) 간단 소스.. ㅋㅋ
![]() |
hooni | 2013.04.23 | 6724 |
552 | Develop | [c] 셀프 넘버(Self Number) 구하기 1 | hooni | 2016.09.09 | 2370 |
551 | Develop | [c] 소수 구하기 #1 (한정된 숫자 내에 있는 소수 걸러내기) | hooni | 2003.04.23 | 7846 |
550 | Develop | [c] 소수 구하기 #2 (입력한 숫자가 소수인지 판별하기..) | hooni | 2013.04.23 | 10994 |
549 | Develop | [c] 소수점 반올림^^ | hooni | 2003.04.23 | 8492 |
548 | Develop |
[c] 소켓 스트림 서버/클라이언트 (UDP)
![]() |
hooni | 2013.04.23 | 7608 |
547 | Develop | [c] 소켓 프로그래밍 요약.. | hooni | 2003.04.23 | 6989 |
546 | Develop | [c] 소켓의 세가지 동작모드 | hooni | 2003.04.23 | 6934 |
545 | Develop | [c] 소켓주소 구조체에 대해.. | hooni | 2003.04.23 | 6754 |
544 | Develop |
[c] 숫자 맞추는 게임..
![]() |
hooni | 2013.04.23 | 6945 |
543 | Develop |
[c] 숫자(int, Number)를 hex코드로 변환하는 소스
![]() |
hooni | 2013.04.23 | 8129 |
542 | Develop |
[c] 스택/힙 오버플로우 테스트(overflow)
![]() |
hooni | 2003.04.23 | 7361 |