Contents

Views 7481 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
489 Develop [c] 파일(File) 관련 함수 샘플 코드 file hooni 2003.04.23 7481
488 Develop [c] 격자 직사각형 넓이 구하기 file hooni 2013.04.23 7480
487 Develop [js] 부모창에서 자식창으로 문자열 전달.. file hooni 2013.04.23 7474
486 Develop [jsp] 유효성체크(Client, Server 에서) file hooni 2003.04.23 7461
485 Develop [c++] MFC 모든 헤더와 라이브러리 설명 | [교류]Programming hooni 2013.04.23 7458
484 Develop [php] gd 프로그램.. htm 파일.. ㅋㅋ file hooni 2013.04.23 7457
483 Develop [c] 암호화 알고리즘 DES 구현 ㅋㅋ file hooni 2013.04.23 7449
482 Develop [c] 지폰(gphone) 소스.. 수정(암호화) file hooni 2013.04.23 7443
481 Develop [c] 단기과정[01/07] 제어문, 피보나치수열 hooni 2003.04.23 7435
480 Develop [c] kmp 활용 search file hooni 2013.04.23 7431
479 Develop [js] 자바스크립트 메뉴얼 사이트.. ㅋㅋ hooni 2013.04.23 7429
478 Develop [c++] mfc로 만든 월플렉스 멀티 수납 시스템(2D기반 설계) file hooni 2013.04.23 7425
Board Pagination Prev 1 ... 53 54 55 56 57 58 59 60 61 62 ... 98 Next
/ 98