home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
listings
/
v_09_02
/
9n02031a
< prev
next >
Wrap
Text File
|
1990-12-13
|
356b
|
16 lines
int
TreeSearch( int NodeNumb, int Value )
{
while( NodeNumb != -1 && Value
!= Tree[NodeNumb].Data )
{
if( Value < Tree[NodeNumb].Data )
NodeNumb = Tree[NodeNumb].Left;
else
NodeNumb = Tree[NodeNumb].Right;
}
}