Views 7470 Votes 0 Comment 0
Atachment
Attachment '1'
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
두가지 이중 연결 리스트.. (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();


?

List of Articles
No. Category Subject Author Date Views
105 Develop [c] 구조체/파일 입출력 프로그램 file hooni 2003.04.23 7063
104 Develop [c++] 더블 링크리스트(linked list) 학습용 초간단 단어장 file hooni 2003.04.23 9323
103 Develop [c] OpenGL 직사각형(2D) 크기 확대/축소 hooni 2003.04.23 9069
102 Develop [jsp] 정적/동적(차트생성) 이미지 전달 file hooni 2003.04.23 7307
101 Develop [c] 프로세스간의 통신(파이프) hooni 2003.04.23 6891
100 Develop [c] 구조체의 설명과 예제.. hooni 2003.04.23 8373
99 Develop [c] 포인터와 함수포인터에 대해.. hooni 2003.04.23 8019
98 Develop [c] 스토리지 클래스(변수) hooni 2003.04.23 8197
97 Develop [c] 시간 관련 함수 설명과 예제.. file hooni 2003.04.23 11524
96 Develop [c] 문자열 처리 관련 함수들 설명 hooni 2003.04.23 7997
95 Develop [linux] 프로세스 관련 시스템콜 hooni 2003.04.23 7827
94 Develop [c] 시간 계산 하는 프로그램 소스코드 file hooni 2003.04.23 6745
93 Develop [php] 마시마로 캐릭터 방명록 file hooni 2003.04.23 8239
92 Develop [c] OpenGL 색 입방체의 회전(입체) hooni 2003.04.23 7869
91 Develop [c] 신기한 atoi함수(www.game79.net) hooni 2003.04.23 7273
90 Develop [c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java) file hooni 2003.04.23 7011
Board Pagination Prev 1 ... 45 46 47 48 49 ... 53 Next
/ 53