Contents

Views 8584 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
555 Develop [js] 모바일웹에서 이미지 저장하는거 (context menu) 막기 hooni 2013.04.23 27253
554 Develop [js] JSON 컨트롤.. 재귀호출로 값 출력하기 hooni 2013.04.23 29486
553 Develop [iphone] 파일 업로드 샘플 코드 ㅎㅎ secret hooni 2013.04.23 11120
552 Develop [node.js] 지금 하고 있는거.. file hooni 2013.04.23 28122
551 Develop [node.js] nodejs 기본 설치 hooni 2013.04.23 28004
550 Develop [iphone] 화면 전환 Portrait & Landscape Mode hooni 2013.04.23 23394
549 Develop [iphone] performSelector:withObject:afterDelay: 에 대한 내용 hooni 2013.04.23 68361
548 Develop [ios] 디렉토리 하하하.. hooni 2013.04.23 33514
547 Develop [ios] iCloud관련 저장 디렉토리 hooni 2013.04.23 31047
546 Develop [ios] NSData 클래스에 대해 (NSData <-> char*) hooni 2013.04.23 27601
545 Develop [ios] UILabel top alignㅎㅎ hooni 2013.04.23 23850
544 Develop [ios] UIColor 지정에서 RGB define ㅎㅎ hooni 2013.04.23 23817
Board Pagination Prev 1 ... 20 21 22 23 24 25 26 27 28 29 ... 71 Next
/ 71