C++链表基本操作

一、先定义好链表的节点结构 template<class DataType> struct pNode {     DataType data;     pNode<DataType>* next;     pNode(DataType d = 0) :data(d), next(NULL)   //在c++中可以在结构中写构造函数     {} }; 二、链表的基本操作 1.链表的构造 temp
相关文章
相关标签/搜索