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

📄 bitreethexample.h

📁 数据结构c++-书的一些源代码
💻 H
字号:
void MakeCharThTree(BiTrThNode<char>* &root, int num)
{
	BiTrThNode<char> *b, *c, *d, *e, *f, *g, *h, *i;
	BiTrThNode<char> *j, *k, *l, *m, *n, *o, *null = NULL;
	if(num == 1)
	{
		g = GetTrThNode('G');
		d = GetTrThNode('D', g);
		b = GetTrThNode('B', d);
		e = GetTrThNode('E');
		f = GetTrThNode('F');
		c = GetTrThNode('C', e, f);
		root = GetTrThNode('A', b, c);
	}
	else if(num == 2)
	{
		g = GetTrThNode('G');
		d = GetTrThNode('D', null, g);
		b = GetTrThNode('B', d);
		e = GetTrThNode('E');
		f = GetTrThNode('F');
		c = GetTrThNode('C', e, f);
		root = GetTrThNode('A', b, c);
	}
	else if(num == 3)
	{
		h = GetTrThNode('H');
		i = GetTrThNode('I');
		d = GetTrThNode('D', h, i);
		j = GetTrThNode('J');
		k = GetTrThNode('K');
		e = GetTrThNode('E', j, k);
		b = GetTrThNode('B', d, e);
		l = GetTrThNode('L');
		m = GetTrThNode('M');
		f = GetTrThNode('F', l, m);
		n = GetTrThNode('N');
		o = GetTrThNode('O');
		g = GetTrThNode('G', n, o);
		c = GetTrThNode('C', f, g);
		root = GetTrThNode('A', b, c);
	}
}

void Printchar(char item)
{
	cout << item<<" ";
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -