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

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

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

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

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

뇌를 자극하는 알고리즘 2. 스택 - ArrayStack

구현 소스 ArrayStack.h #ifndef ARRAYSTACK_H #define ARRAYSTACKT_H #include #include typedef int ElementType; // 데이터를 가지는 Node 구조체 선언 typedef struct tagNode{ ElementType Data; }Node; // 스택 구조체 선언 typedef struct tagArrayStack{ int Capacity; // 배열로 구현하기 때문에 전체 용량을 제한함 int Top; // 가장 최근에 들어온 데이터의 인덱스를 가지는 Top Node* Nodes; // 데이터 }ArrayStack; void AS_CreateStack(ArrayStack** Stack, int Capacity); // stac..

Programming/뇌를 자극하는 알고리즘 2010. 10. 2. 00:03
뇌를 자극하는 알고리즘 1. 리스트 - Circle Double Linked List

코드 CDDL.h #ifndef CDLL_H #define CDLL_H #include #include typedef int ElementType; typedef struct tagNode{ ElementType Data; struct tagNode *PrevNode; struct tagNode *NextNode; } Node; Node* CDLL_CreateNode(ElementType NewData); // 노드 생성 void CDLL_DestroyNode(Node* Node); // 노드 파괴 void CDLL_AppendNode(Node** Head, Node* NewNode); // 노드를 추가하는 함수 - 링크드 리스트 젤 끝(tail)에 추가 void CDLL_InsertAfter(Node*..

Programming/뇌를 자극하는 알고리즘 2010. 10. 1. 00:27
뇌를 자극하는 알고리즘 1. 리스트 - Double Linked List

코드 DLL.h #ifndef DLL_H #define DLL_H #include #include typedef int ElementType; typedef struct tagNode{ ElementType Data; struct tagNode *PrevNode; struct tagNode *NextNode; } Node; Node* DLL_CreateNode(ElementType NewData); // 노드 생성 void DLL_DestroyNode(Node* Node); // 노드 파괴 void DLL_AppendNode(Node** Head, Node* NewNode); // 노드를 추가하는 함수 - 링크드 리스트 젤 끝(tail)에 추가 void DLL_InsertAfter(Node* Curren..

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

티스토리툴바