数据结构_二叉查找树的遍历


void PrintTree( SearchTree T )
{
	if( T!= NULL )
	{
		PrintTree( T->Left );
		PrintElement( T->Element );
		PrintTree( T->Right );
	}
}

void PrintElement( ElementType X )
{
	printf( "%d", X );
}

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注