본문 바로가기 메뉴 바로가기

더 나은 프로그래머가 되기 위하여.

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

더 나은 프로그래머가 되기 위하여.

검색하기 폼
  • Trash (25)
    • Programming (25)
      • 뇌를 자극하는 알고리즘 (25)
  • 방명록

Queue (2)
뇌를 자극하는 알고리즘 - 3. 큐 : 링크드 리스트 큐

구현소스 LinkedListQueue.h #ifndef LINKEDLISTQUEUE_H #define LINKEDLISTQUEUE #include #include #include typedef struct tagNode{ char* Data; struct tagNode* NextNode; }Node; typedef struct tagLinkedQueue{ Node* Front; // 전단을 가리키는 포인터 Node* Rear; // 후단을 가리키는 포인터 int Count; // Node의 개수를 가짐 } LinkedQueue; void LQ_CreateQueue(LinkedQueue** Queue); // Queue 생성 void LQ_DestroyQueue(LinkedQueue* Queue); // ..

Programming/뇌를 자극하는 알고리즘 2010. 10. 5. 15:07
뇌를 자극하는 알고리즘 - 3. 큐 : 순환 큐

구현소스 CircularQueue.h #ifndef CIRCULARQUEUE_H #define CIRCULARQUEUE_H #include #include typedef int Element; // 데이터 구조체 typedef struct tagNode{ Element Data; }Node; typedef struct tagCircularQueue{ int Capacity; // 용량 (실제용량은 Capacity+1) int Front; // Front index int Rear; // Rear index Node* Nodes; // 데이터 구조체 배열 } CircularQueue; void CQ_CreateQueue( CircularQueue** Queue, int Capacity); // Queue ..

Programming/뇌를 자극하는 알고리즘 2010. 10. 5. 15:01
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • WM_TIMER
  • Stack
  • WM_CONTEXTMENU
  • Queue
  • IntersectRect
  • Game project
  • 윈도우즈 API 정복
  • PtInRect
  • Kinect Game Project
  • Tales of the Float Land
  • 그림 맞추기 게임
  • Data Structures in C
  • Linked list
  • 뇌를 자극하는 알고리즘
  • quick sort
  • Tree
  • graph
  • SetTimer
  • Pixel 색상값으로 구현한 간단한 충돌
  • 열혈강의C
  • WinAPI
  • Digits Folding
  • Ice Climber
  • Kinect Programming
  • PackMan
  • 2D Game Project
  • Farseer Physics
  • MFC 예제
  • Hash table
  • Win32 API
more
«   2025/11   »
일 월 화 수 목 금 토
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바