⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 listnode.h

📁 字符频度统计
💻 H
字号:
#ifndef LISTNODE_CLASS
#define LISTNODE_CLASS

#include <iostream.h>
#include <stdlib.h>
#include <fstream.h>
#include <iomanip.h>

template <class T>
class LinkedList;

template <class T>
class Iterator;

template <class T>
class ListNode
{
	friend class LinkedList<T>;
	friend class Iterator<T>;
public:
	ListNode():link(NULL){};
	ListNode(const T & item,ListNode<T> *next=NULL):data(item),link(next){}
	ListNode<T> *GetNextNode(){return link;}
	friend ostream & operator<<(ostream & os,const ListNode<T> &node);
	T data;
private:
	
	ListNode<T> *link;
};

#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -