Contents

조회 수 7472 댓글 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();



?

  1. [c] 단기과정[01/14] 파일 입출력

  2. [c] 웹 메모장.. ㅋㅋ

  3. [c++] 프리렉(freelec) 예제 자료.. ㅋㄷ

  4. [js] 수명체크 프로그램 ㅋㅋ

  5. [js] get방식, url이후 모두 그대로 읽어오기..

  6. [pdf] 윈도우즈 95 시스템 프로그래밍(Windows 95 system programming)

  7. [c] 문자열 str_shift 예제..

  8. [ajax] 샘플 코드와 한글처리에 대한 간단한 설명

  9. [js] 사라지는 브라우저

  10. [c] 라인수 입력받아 마름모꼴 출력하기..

  11. [c] 간단한 순위 루틴.. (정보처리기사)

  12. [c] 프로세스간의 통신(파이프)

Board Pagination Prev 1 ... 26 27 28 29 30 31 32 33 34 35 ... 98 Next
/ 98