VC++程序设计链表与链表的基本操作课件.pptVIP

  • 3
  • 0
  • 约9.07千字
  • 约 36页
  • 2017-05-22 发布于河南
  • 举报

VC++程序设计链表与链表的基本操作课件.ppt

* * * * * * * * templatetypename T NodeT* ListT::Find(T data){ NodeT *tempP=head-link; while(tempP!=NULLtempP-info!=data) tempP=tempP-link; return tempP; } //搜索成功返回该结点地址,不成功返回NULL templatetypename Tint ListT::Length( ){ NodeT* tempP=head-link; int count=0; while(tempP!=NULL){ tempP=tempP-link; count++;} return count; } templatetypename Tvoid ListT::PrintList( ){ NodeT* tempP=head-link; while(tempP!=NULL){ couttempP-info\t; tempP=tempP-link; } coutendl; } templatetypename Tvoid ListT::InsertFront(N

文档评论(0)

1亿VIP精品文档

相关文档