Notice
Recent Posts
Recent Comments
Link
«   2025/02   »
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
Tags more
Archives
Today
Total
관리 메뉴

Pure Software Engineer :)

이진트리 본문

Software Engineering/Programming

이진트리

HelloJaewon 2010. 1. 16. 15:02

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