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

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

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

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

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

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

티스토리툴바