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

  • 1
  • 0
  • 约9.07千字
  • 约 36页
  • 2017-05-30 发布于四川
  • 举报
* * * * * * * * 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精品文档

相关文档