Develop
2013.04.23 14:56
[c] 더블(이중) 연결리스트 예제..
조회 수 7479 댓글 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();
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
309 | Develop | [c] 다중연결 서버 만들기 #3 - poll() 사용 | hooni | 2013.04.23 | 6367 |
308 | Develop | [c] 다중연결 서버 만들기 #2 - select() 사용 | hooni | 2013.04.23 | 9374 |
307 | Develop | [c] 다중연결 서버 만들기 #1 - fork() 사용 | hooni | 2013.04.23 | 12945 |
306 | Develop | [c] 도메인 소켓(Unix Domain Socket) UDP | hooni | 2013.04.23 | 9309 |
305 | Develop | [c] 간단한 소켓 프로그래밍 샘플 | hooni | 2013.04.23 | 8181 |
304 | System/OS | [linux] X환경 GNOME에서 KDE로 바꾸는 법.. | hooni | 2013.04.23 | 12413 |
303 | Develop | [c] 패킷 유량/프로토콜 통계 모니터링.. | hooni | 2013.04.23 | 8395 |
302 | System/OS | 무선 인증 서버.. 김도.. ㅋㅋ | hooni | 2013.04.23 | 17676 |
301 | Develop | [c] 달팽이 배열? 인지 먼지.. ㅋㅋ | hooni | 2013.04.23 | 7149 |
300 | Develop | [java] RGB 색상 조절 버튼.. 스윙(swing) | hooni | 2013.04.23 | 7862 |
299 | Develop | [java] 채팅창 처럼2.. swing.. | hooni | 2013.04.23 | 6445 |
298 | Develop | [java] 채팅창 처럼.. swing.. | hooni | 2013.04.23 | 8791 |