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

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

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

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

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

뇌를 자극하는 알고리즘 - 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
뇌를 자극하는 알고리즘 2. 스택 - Linked List Stack

구현소스 LinkedListStack.h #ifndef LINKEDLISTSTACK_H #define LINKEDLISTSTACK_H #include #include #include // 데이터를 가지는 Node 구조체 typedef struct tagNode { char* Data; // ArrayStack과 다르게 데이터를 문자열로 지정했다. // Node 생성시 Node 구조체 타입의 메모리 생성뿐만 아니라 문자열의 메모리도 생성 및 파괴 해줘야 한다. struct tagNode* NextNode; // 다음 노드를 가리키는 NextNode } Node; typedef struct tagLinkedListStack { Node* List; // 최하위 노드를 가리키는 List Node* Top; /..

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

Blog is powered by Tistory / Designed by Tistory

티스토리툴바