mycontrol.h
来自「B+树的演示程序」· C头文件 代码 · 共 53 行
H
53 行
#pragma once
#include "MyBPlusTree.h"
#include "Parameters.h"
// MyControl 命令目标
class MyControl : public CObject
{
public:
MyBPlusTree m_tree;
long m_drawKey0; // draw which node
int m_drawLevel;
void* m_insertPoint;
int m_iType; // the type of draw: 1, search.
bool m_bSleep;
int m_iNumber;
CWnd* m_pParentWnd;
static long m_lMine[15]; // = {5,60,53,45,12,3,54,55,1,2,7,6,4,8,10};
long m_lInput[MAXINPUT];
int m_iInput;
long m_lRandom[MAXRANDOM];
int m_iRandom;
public:
MyControl();
virtual ~MyControl();
void SetParentWnd(CWnd* pParentWnd);
bool Create(int n=MINIMUS_NUMBER_OF_NODE);
void DeleteTree(void);
int Search(long key);
int Insert(long key);
int Delete(long key);
int ModifyTree(int n);
void InsertStore();
int PreInsertRandom(int n);
void InsertRandom(int n);
int DeleteRandom();
int GetN();
void DisplayTree(void);
void Display(long key0,int level,int type,void* insertPoint=NULL,int iNumber=-1);
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?