Contents

Views 7470 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
621 Develop [js] jQuery 관련 사이트 링크 모음 hooni 2013.04.23 18244
620 Develop [js] 한글주소(URL) 인코딩(encode, Encoding), 자바스크립트(JavaScript) hooni 2013.04.23 11335
619 Develop URI 인코딩, URL 인코딩 file hooni 2013.04.23 18850
618 Develop OGNL(Object Graph Navigation Language) hooni 2013.04.23 15733
617 System/OS [java] Tomcat/UTF-8 or All 지원 ㅎㅎ hooni 2013.04.23 16748
616 Etc 이클립스(Eclipse) 유용한 단축키 ㅋㅋ hooni 2013.04.23 21768
615 Develop [c] 포인터 학습용 예제 소스 코드 file hooni 2013.04.23 21034
614 Develop [c#] 정규표현식을 이용한 문자열에서 태그 제거함수 file hooni 2013.04.23 17812
613 Develop [vb] 문자열에서 태그 제거함수 (Visual Basic) file hooni 2013.04.23 22626
612 Develop [unix] 날짜 관련 쉘 명령어 (특정일 또는 +-시간, 날짜 계산된 값) hooni 2013.04.23 14816
611 PPT [php] 프레임워크 발표자료 및 샘플 구현 소스 file hooni 2013.04.23 17501
610 Develop [js] 자바스크립트를 동적으로 로딩하기 hooni 2013.04.23 13576
Board Pagination Prev 1 ... 42 43 44 45 46 47 48 49 50 51 ... 98 Next
/ 98