C++鏈表基本操作

一、先定義好鏈表的節點結構 template<class DataType> struct pNode {     DataType data;     pNode<DataType>* next;     pNode(DataType d = 0) :data(d), next(NULL)   //在c++中可以在結構中寫構造函數     {} }; 二、鏈表的基本操作 1.鏈表的構造 temp
相關文章
相關標籤/搜索