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
번호 분류 제목 글쓴이 날짜 조회 수
877 Develop [unix] 날짜 관련 쉘 명령어 (특정일 또는 +-시간, 날짜 계산된 값) hooni 2013.04.23 15858
876 Develop [ios] iOS In App Purchase 코드 부분 샘플 1 hooni 2013.11.20 15828
875 Develop [ios] iOS In App Purchase #2 (코드 구현) file hooni 2013.11.20 15827
874 Develop [api] 인스타그램에서 최신 이미지 가져오기 (Using Instagram API) 20 file hooni 2018.04.05 15811
873 System/OS [sql] 중복데이터 삭제 쿼리 hooni 2013.04.23 15767
872 Develop [C] C언어의 조건 연산자(Conditional Operator) hooni 2003.04.23 15740
871 Develop [ios] Objective-C에서 SQLite 사용하기.. file hooni 2013.04.23 15612
870 System/OS [linux] 랜카드 2개 설정 & iptables 로 사설 ip.. hooni 2003.04.23 15593
869 System/OS [linux] 리눅스 활용 팁^^ hooni 2003.04.23 15543
868 System/OS [linux] 아파치설치/설정(CGI부분) hooni 2003.04.23 15448
867 PPT [ppt] Magic URLs & Hidden Form Fields 에 대해.. ㅋㅋ file hooni 2013.04.23 15441
866 System/OS [linux] sendmail 설정/사용 hooni 2003.04.23 15435
Board Pagination Prev 1 ... 21 22 23 24 25 26 27 28 29 30 ... 99 Next
/ 99