Hot Search : Source embeded web remote control p2p game More...
Location : Home Downloads SourceCode Mathimatics-Numerical algorithms Data structs
  • Category : Data structs
  • Tags :
  • Update : 2012-11-26
  • Size : 1.12mb
  • Downloaded :0次
  • Author :陈***
  • About : Nobody
  • PS : If download it fails, try it again. Download again for free!
Download1 Download2
Don't use download software fo downloading.
If download fail,Try it again for free.
Introduction - If you have any usage issues, please Google them yourself
#include <stdio.h> #include <string.h> #include <windows.h> struct BTree { int data struct BTree* left struct BTree* right } //end struct BTree BTree* CreateLeaf(int number) { BTree* l = new BTree l->data = number l->left = 0 l->right = 0 return l }//end CreateLeaf void append(BTree** root, int number) { if (!root) return BTree* t =*root if (!t) { *root = CreateLeaf(number) return }//end if while(t) { if(number == t->data ) return //ignore duplicated elements. if(number < t->data ) { if(!t->left ) { t->left = CreateLeaf(number) return }//end if t = t->left }else{ if(!t->right ) { t->right = CreateLeaf(number) return }//end if t = t->right }//end if }//end while }//end append void PrintLeaf(const BTree* root) { if (!root) return if (root->left ) PrintLeaf(root->left ) printf(" d\t", root->data) if (root->right ) PrintLeaf(root->right )
Packet file list
(Preview for download)
新建文件夹\Debug\vc60.idb
..........\.....\vc60.pdb
..........\.....\平衡二叉树.exe
..........\.....\平衡二叉树.ilk
..........\.....\平衡二叉树.obj
..........\.....\平衡二叉树.pch
..........\.....\平衡二叉树.pdb
..........\平衡二叉树.cpp
..........\平衡二叉树.dsp
..........\平衡二叉树.dsw
..........\平衡二叉树.ncb
..........\平衡二叉树.opt
..........\平衡二叉树.plg
..........\Debug
新建文件夹
Related instructions
  • We are an exchange download platform that only provides communication channels. The downloaded content comes from the internet. Except for download issues, please Google on your own.
  • The downloaded content is provided for members to upload. If it unintentionally infringes on your copyright, please contact us.
  • Please use Winrar for decompression tools
  • If download fail, Try it againg or Feedback to us.
  • If downloaded content did not match the introduction, Feedback to us,Confirm and will be refund.
  • Before downloading, you can inquire through the uploaded person information

Nothing.

Post Comment
*Quick comment Recommend Not bad Password Unclear description Not source
Lost files Unable to decompress Bad
*Content :
*Captcha :
CodeBus is the largest source code store in internet!
Contact us :
1999-2046 CodeBus All Rights Reserved.