1 Star 1 Fork 0

AvenirTech 未来科技 / C++双向链表

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
DoubleNode.h 698 Bytes
一键复制 编辑 原始数据 按行查看 历史
吉法师 提交于 2020-04-11 08:44 . 123
#ifndef DOUBLENODE_H
#define DOUBLENODE_H
#include<iostream>
using namespace std;
class Node
{
public:
int data;
Node * last;
Node * next;
};
class DoubleNode
{
private:
Node * head; //头结点
Node * tail; //尾节点
public:
DoubleNode();
~DoubleNode();
int getsize();
bool isempty();
void create(int len);
void showhead();//正向遍历
void showtail();//逆向遍历
int get(int index);
int get_first();
int get_last();
void insert(int index,int data);
void insert_first(int data);
void insert_append(int data);
void del(int index);
void delete_first();
void delete_end();
};
#endif // DOUBLENODE_H
C++
1
https://gitee.com/onlyyyy/c_double_linked_list.git
git@gitee.com:onlyyyy/c_double_linked_list.git
onlyyyy
c_double_linked_list
C++双向链表
master

搜索帮助