Contents

조회 수 8584 댓글 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
번호 분류 제목 글쓴이 날짜 조회 수
445 Develop [js] 사라지는 브라우저 hooni 2003.04.23 8419
444 Develop [html] 메타태그 사용예.. 은지나 바라~ hooni 2003.04.23 8406
443 Develop [c][java] 소켓 프로그래밍(채팅 서버 C, 클라이언트 Java) file hooni 2003.04.23 8402
442 Develop [js] 자바스크립트와 정규표현식 메뉴얼 (chm 형식) file hooni 2013.04.23 8386
441 Develop [c] kmp 활용 search file hooni 2013.04.23 8385
440 Develop [php] 무조건 다운로드 받도록 header 세팅 file hooni 2013.04.23 8385
439 Develop [c] 시간(요일,날짜 포함) 출력하는 프로그램 초간단 코드 hooni 2013.04.23 8379
438 Develop [asp] 폼 메일 소스 file hooni 2013.04.23 8379
437 Develop [c] 단기과정[01/06] sizeof, 실수표현, 메모리, 연산자 hooni 2003.04.23 8368
436 Develop [c] 단기과정[01/10] 과제.. swap(any data, ..) file hooni 2003.04.23 8365
435 Develop [php] gd 프로그램.. htm 파일.. ㅋㅋ file hooni 2013.04.23 8364
434 Develop [c] 가변인자 함수(printf와 같은..) hooni 2013.04.23 8363
Board Pagination Prev 1 ... 57 58 59 60 61 62 63 64 65 66 ... 99 Next
/ 99