📄 binaryclass.cpp
字号:
#include<stdlib.h>
#include<time.h>
#include <vcl\vcl.h>
//#pragma link "WThread"
//#include "WThread.hpp"
void Delay(int iMilliSeconds)
{
int iStart;
iStart = GetTickCount();
while (GetTickCount() - iStart <= iMilliSeconds)
Application->ProcessMessages();
}
TColor setColor;
typedef struct pos{
int xIndent,yLevel;
int sequence;
}position;
class CBinaryNode
{
public:
int data;
bool selected;
struct CBinaryNode *left;
struct CBinaryNode *right;
TLabel *NodeDataInformationLabel;
private:
position posInfo;
public:
//position posInfo;
CBinaryNode(int d) {
data=d;
left=right=0;
posInfo.xIndent=posInfo.yLevel=posInfo.sequence=0;
selected = false;
NodeDataInformationLabel=new TLabel(NULL);
NodeDataInformationLabel->Caption="<"+IntToStr(data)+">";
NodeDataInformationLabel->Color=clYellow;
NodeDataInformationLabel->Visible=false;
// 盢 NodeDataInformationLabel 陪ボ
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -