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
번호 분류 제목 글쓴이 날짜 조회 수
757 Develop [c++] 기초강좌 #04(클래스) hooni 2003.04.23 12807
756 Develop [c] 시간 관련 함수 설명과 예제.. file hooni 2003.04.23 12781
755 Develop [c] 테트리스(Tetris) 게임(도스용) 소스코드 file hooni 2003.04.23 12781
754 Develop 페이팔에서 돈 찾기 (Paypal withdraw) file hooni 2014.02.20 12752
753 Develop [php] 배열 관련 함수 설명 ㅎㅎ hooni 2003.04.23 12747
752 Develop [c++] RSA Sample 4 CPP hooni 2013.04.23 12719
751 System/OS [linux] 텔넷, FTP 텍스트 모드에서 사용 hooni 2003.04.23 12707
750 Develop [c++] 기초강좌 #02(레퍼런스,메모리할당) hooni 2003.04.23 12696
749 Develop [c++] String Tokenizer (나중에 c 코드로 변경해서 사용할 것) hooni 2013.04.23 12693
748 Develop [vbs] CD롬 뱉는 스크립트.. hooni 2003.04.23 12670
747 PPT [network] tcp/ip 설명 html파일 9장(ppt 포함) file hooni 2013.04.23 12648
746 Develop [js] 인터넷 주소(URL) 인코딩 ㅋㅋ hooni 2013.04.23 12646
Board Pagination Prev 1 ... 31 32 33 34 35 36 37 38 39 40 ... 99 Next
/ 99