不帶頭節點的鏈表尾插法C++實現

#include <iostream> using namespace std; typedef int DATA; //鏈表的尾插法 struct SNode { DATA data; SNode* pNext; }; struct SList { SNode* m_pHead; SNode* end_pHead; SList() { m_pHead = NULL;
相關文章
相關標籤/搜索