Contents

조회 수 8585 댓글 0
Atachment
첨부 '1'
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
?

단축키

Prev이전 문서

Next다음 문서

크게 작게 위로 아래로 댓글로 가기 인쇄
두가지 이중 연결 리스트.. (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
번호 분류 제목 글쓴이 날짜 조회 수
757 Develop [c] 연산자 우선순위.. ㅋㅋ hooni 2013.04.23 8307
756 Develop [c] 확인해 볼거.. ㅡ,.ㅡ; file hooni 2013.04.23 8323
755 Develop [js] 빈도우즈(bindows96) file hooni 2013.04.23 8337
754 Develop [c] 달팽이 배열? 인지 먼지.. ㅋㅋ hooni 2013.04.23 8339
753 Develop [js] 후리자(영규) 스타일들.. file hooni 2013.04.23 8343
752 Develop [ios] Did UIScrollView End Scrolling? hooni 2016.04.19 8345
751 Develop [c] C에서 MySQL DB 사용하기~ file hooni 2003.04.23 8347
750 Develop [c/c++] Makefile 사용하기.. ㅋㅋ hooni 2003.04.23 8347
749 Develop [c++] mfc 기반 멀티수납(wall)시스템 소스와 실행파일 file hooni 2013.04.23 8348
748 Develop [c] 윈도우 API Viewport와 Window file hooni 2013.04.23 8349
747 Develop [js] 여러가지 트리(tree) 모음.. ㅋㅋ file hooni 2013.04.23 8350
746 Develop [c] 단기과정[01/17] 후위연산 스택 계산기.. file hooni 2003.04.23 8353
Board Pagination Prev 1 ... 31 32 33 34 35 36 37 38 39 40 ... 99 Next
/ 99