C++小记:C++实现简易单链表模板类,重载输出流“<<”。
直接上代码:
SLList.h//SLList.h
//线性表的链接式存储之单链表
template class SLList;
template std::ostream & operator &t);
//Singly-Linked List Node
template
struct SLNode{
T data;
SLNode *next;
SLNode(SLNo
原创
2016-11-14 19:59:51 ·
1123 阅读 ·
0 评论