<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[he_x的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/he_x</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; he_x]]></copyright><item><title><![CDATA[一棵C#写的树(1)]]></title><link>https://blog.csdn.net/he_x/article/details/14507</link><guid>https://blog.csdn.net/he_x/article/details/14507</guid><author>he_x</author><pubDate>Tue, 26 Mar 2002 11:07:00 +0800</pubDate><description><![CDATA[       C#的确是一个很好的面向对象语言，我看《数据结构(第二版)》那本书应该出本用C#描述的版本。下面是我用C#写的一棵树。先用接口把节点做了抽象定义，这样在实现遍历，插入等操作的时候只对接口进行操作。在程序中，我尽量使用C#的特性，如接口，属性，玫举，这样代码虽然看起来比较冗长，但是，当代码越来越长的时候，你就会从中看到优点，因为合理的结构让你永远思路清晰。这课树我只能算写了一个开头，因]]></description><category></category></item></channel></rss>