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

📄 headlist.h

📁 这是一个数据结构课程的关于带表头节点问题的的源代码
💻 H
字号:
#include <iostream>

using namespace std;

class List;

class Listnode
{
	friend class List;
	friend ostream &operator<<(ostream &,const List &);
public:
	Listnode();
	Listnode(int);
	int getdata(){return data;}
	Listnode *getnode(int,Listnode *);
private:
	int data;
	Listnode *link;
};

class List
{
	friend ostream &operator<<(ostream &,const List &);
public:
	List(int);
	Listnode *locate(int);
	Listnode *maxnode();
	int number(int);
	int insert(int,int);
	void create(int,int *);
	void tidyup(int);
private:
	Listnode *first,*last;
};

⌨️ 快捷键说明

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