Contents

조회 수 7486 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
625 Develop [js] get방식, url이후 모두 그대로 읽어오기.. hooni 2013.04.23 6874
624 Develop [web] URL 인코딩 방법.. 테이블.. ㅋㅋ hooni 2013.04.23 7184
623 Develop [js] 툴팁.. 좋은거.. (tooltip) file hooni 2013.04.23 7083
622 Develop [js] 스타크래프트(starcraft).. file hooni 2013.04.23 6674
621 Develop [php] 탐색기와 같은 다이나믹 트리(xml/xsl 이용) file hooni 2013.04.23 7207
620 Develop [c] 네트워크 보안 프로그래밍 과제 (Server,Agent,Client) file hooni 2013.04.23 6497
619 Develop [switch] 시스코 카탈리스트(Cisco Catalyst) 2950 미러링 설정 hooni 2013.04.23 11435
618 Develop [c] 시스템 보안 과제.. 시간(amc time) 변경 file hooni 2013.04.23 7207
617 Develop [c] 암호 알고리즘 소스.. file hooni 2013.04.23 8354
616 Develop [c] 지폰(gphone) 소스.. 수정(암호화) file hooni 2013.04.23 7448
615 Develop [c] 파일(int fd)에서 개행문자 단위로 읽기 by 후리자 hooni 2013.04.23 7166
614 Develop [mysql] 양력, 음력 DB데이터 file hooni 2013.04.23 7848
Board Pagination Prev 1 ... 14 15 16 17 18 19 20 21 22 23 ... 71 Next
/ 71