이진 탐색 트리
- 최초 등록일
- 2006.11.22
- 최종 저작일
- 2005.10
- 4페이지/ 압축파일
- 가격 1,000원
소개글
이진 탐색 트리입니다
컴파일 실행환경
Microsoft visual c++에서 작성했습니다
본문내용
//BST 클래스의 함수
#include "BST.h"
#include <iostream.h>
BstNode::BstNode(){
data=0;
LeftChild=0;
RightChild=0;
}
BST::BST()
{
root=0;
}
void BST::inorder() //중위순회 함수 드라이버
{
cout<<"우선중위순회 : ";
inorder(root);
cout<<endl;
}
void BST::inorder(BstNode* CurrentNode) //실제적인 중위순회
{
if(CurrentNode)
{
inorder(CurrentNode->LeftChild); //순환호출
cout<<"["<<CurrentNode->data<<"]";
inorder(CurrentNode->RightChild);
압축파일 내 파일목록
이진탐색트리출력결과.hwp
이진탐색트리소스/BinarySearchTree.cpp
이진탐색트리소스/BinarySearchTree.dsp
이진탐색트리소스/BinarySearchTree.dsw
이진탐색트리소스/BinarySearchTree.ncb
이진탐색트리소스/BinarySearchTree.opt
이진탐색트리소스/BinarySearchTree.plg
이진탐색트리소스/BST.cpp
이진탐색트리소스/BST.h
이진탐색트리소스/Debug/BinarySearchTree.exe
이진탐색트리소스/Debug/BinarySearchTree.ilk
이진탐색트리소스/Debug/BinarySearchTree.obj
이진탐색트리소스/Debug/BinarySearchTree.pch
이진탐색트리소스/Debug/BinarySearchTree.pdb
이진탐색트리소스/Debug/BST.obj
이진탐색트리소스/Debug/vc60.idb
이진탐색트리소스/Debug/vc60.pdb
참고 자료
없음