Pure Software Engineer :)
이진트리 본문
BinaryTree.h
#ifndef BINARY_TREE_H
#define BINARY_TREE_H
#include <stdio.h>
#include <stdlib.h
typedef char ElementType;
typedef struct tagSBTNode {
struct tagSBTNode* Left;
struct tagSBTNode* Right;
ElementType Data;
} SBTNode;
SBTNode* SBT_CreateNode(ElementType NewData);
void SBT_DestroyNode(SBTNode* Node);
void SBT_DestroyTree(SBTNode* Node);
void SBT_PreorderPrintTree(SBTNode* Node);
void SBT_InorderPrintTree(SBTNode* Node);
void SBT_PostorderPrintTree(SBTNode* Node);
#endif
BinaryTree.c
Test_BinaryTree.c
'Software Engineering > Programming' 카테고리의 다른 글
레드블랙트리 (0) | 2010.01.27 |
---|---|
이진탐색트리 (0) | 2010.01.24 |
Adapter Pattern (0) | 2010.01.17 |
Iterator Pattern (0) | 2010.01.17 |
분리집합 (0) | 2010.01.16 |