?? lxbinnode.cpp
字號:
// lxbinnode.cpp: implementation of the lxbinnode class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "lxbinnode.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
lxbinnode::lxbinnode()
{
lc=rc=NULL;
}
lxbinnode::~lxbinnode()
{
}
lxbinnode::lxbinnode(int e, lxbinnode *l, lxbinnode *r)
{
it=e;
lc=l;
rc = r;
}
int& lxbinnode::val()
{
return it;
}
void lxbinnode::setval(const int &e)
{
it=e;
}
lxbinnode* lxbinnode::left() const
{
return lc;
}
void lxbinnode::setleft(lxbinnode *b)
{
lc=b;
}
lxbinnode* lxbinnode::right() const
{
return rc;
}
void lxbinnode::setright(lxbinnode *b)
{
rc=b;
}
bool lxbinnode::isleaf()
{
return (lc==NULL)&&(rc==NULL);
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -