binarytreebasis.cs
来自「这是有一个解决八数码问题的程序! 主要应用了宽度优先搜索法! 是用C#开发的」· CS 代码 · 共 33 行
CS
33 行
using System;
using System.Collections.Generic;
using System.Text;
namespace DS.Tree
{
public abstract class BinaryTreeBasis
{
protected TreeNode root;
//
public BinaryTreeBasis()
{
root = null;
}
public BinaryTreeBasis(Object rootItem)
{
root = new TreeNode(rootItem,null,null);
}
//
public TreeNode Root
{
get
{
return root;
}
set
{
root = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?