数据结构学习(C++)——单链表(定义与实现)[5]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 happycock 的 blog

              {

                     p = p->link;

                     count++;

              }

              return count;

       }

 

       type *get()//返回当前节点的数据域的地址

       {

              if (current != null) return &current->data;

              else return null;

       }

 

       bool put(type const &value)//改变当前节点的data,使其为value

       {

              if (current != null)

              {

                     current->data = value;

                     return ture;

本文关键:数据结构 C++ 单链表
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top