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();
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
385 | Develop | [linux] 날짜나 파일의 내용으로 검색하는 방법(find 명령 사용) | hooni | 2013.04.23 | 8142 |
384 | Develop | [c] GD라이브러리 설치 테스트 소스 | hooni | 2013.04.23 | 8161 |
383 | Develop | [js] 주민번호 생성기.. | hooni | 2003.04.23 | 8164 |
382 | Develop | [jsp] 페이지에 한글이 정상적으로 보이지 않을 때.. | hooni | 2013.04.23 | 8170 |
381 | Develop | [c#] 본현이형 논문 자료 (HIDS)ㅋㅋ | hooni | 2013.04.23 | 8176 |
380 | Develop | [c] 간단한 소켓 프로그래밍 샘플 | hooni | 2013.04.23 | 8180 |
379 | Develop | [c] 가위 바위 보 서버, 클라이언트 소스코드 | hooni | 2003.04.23 | 8208 |
378 | Develop | [c] 프로그래밍 ppt, 스킬업 (비트 수업자료) | hooni | 2003.04.23 | 8211 |
377 | Develop | [c] 스토리지 클래스(변수) | hooni | 2003.04.23 | 8214 |
376 | Develop | [vb] 64bit RSA 프로그램 소스 ㅋㅋ | hooni | 2013.04.23 | 8222 |
375 | Develop | [c] 그래픽 차트 라이브러리.. 나중에 확인 해볼 거.. | hooni | 2013.04.23 | 8234 |
374 | Develop | [c] 문자열 정렬 함수 qsort() | hooni | 2003.04.23 | 8261 |