用c++类模板,实现的单链表基本操作
#include"stdafx.h"#include#includeusingnamespacestd;templatestructLNode{Tdata;LNode*next;};templateclassLinkList{public:LinkList(){L=0;}//构造函数~LinkList();//析构函数,销毁单链表voidCreateList_L(intn);//构造单链表boolIsEmpty()cons
下载地址
用户评论
不值这么多分啊,代码比较一般。这里这么多大神,完全可以来更好的代码啊。
挺好的,对于链表讲的很详细
这个还可以 就是分数太高
很好了讲解了c++模板的使用和链表的使用方法
多谢分享 学习下 不过分值不值6分 代码处理的也很一般