계획
추상 자료형 만들기
기본 틀 만들기
함수 구현하기
#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
struct TreeNode {
struct Tree* cl;
struct Tree* cr;
int data;
};
struct Tree {
struct TreeNode* pRootNode;
};
struct Tree MakeTree(struct TreeNode rootNode)
{
return
}
struct TreeNode* getRootNode(struct Tree* pTree)
{
return
}
struct TreeNode* insertLeftChildNode(struct TreeNode* pParentNode, struct TreeNode element)
{
return
}
struct TreeNode* insertRightChildNode(struct TreeNode* pParentNode, struct TreeNode element)
{
return
}
struct TreeNode* getLeftChildNode(struct TreeNode* pNode)
{
return
}
struct TreeNode* getRightChildNode(struct TreeNode* pNode)
{
return
}
struct TreeNode* getData(struct TreeNode* pNode)
{
return
}
void deleteTreeNode(struct TreeNode* pNode)
{
return
}
void deleteTree(struct Tree* pNode)
{
return
}
int main() {
return 0
}