⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 binaryclass.cpp

📁 读入树状结构,是计算机系c语言设计必考内容之一,大家应好好研究这个源程序
💻 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 + -