数据结构学习(C++)——双向链表[4]

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

本文简介:选择自 happycock 的 blog

       }

 

       void insert(const type &value)

       {

              node<type> newdata(value, (node<type>*)pget());

              list< node<type> >::insert(newdata);

              if (pgetnext()->link != null)

pgetnext()->link->data.link = (node<type>*)pgetnext();

       }

 

       bool remove()

       {

              if (list< node<type> >::remove())

              {

                     pget()->data.link = (node<type>*)pgetprior();

                     return ture;

              }

              return false;

       }

 

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

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

go top