一聚教程网:一个值得你收藏的教程网站

热门教程

链表类具有哈希表的功能

时间:2022-07-02 11:08:42 编辑:袖梨 来源:一聚教程网

using System;
namespace Study
{
 ///
 /// CChain 的摘要说明。
 ///

 public class CChain
 {
    
    public class CChainNode
    {
     public object Data;
     public CChainNode NextChainNode;
     public CChainNode PreviousChainNode;
     public object Tag;
     public string Key;
     public CChainNode()
     {
    this.Data=null;
    this.Tag=null;
    this.Key=null;
    this.NextChainNode=this.PreviousChainNode=null;
     }
     public CChainNode(object vData,object vTag,string vKey)
     {
    this.Data=vData;
    this.Tag=vTag;
    this.Key=vKey;
    this.NextChainNode=this.PreviousChainNode=null;
     }
    }
    public class CChainIterator
    {
     private CChainNode pCurrentChainNode,pFirstChainNode,pLastChainNode;
     private bool pbFirst,pbLast;

热门栏目