📄 llist.h
字号:
#include "Node.h"
#include <iostream>
using namespace std;
//////link/////////
class LList{
private:
Node *head;
void init(){ //initial the link
head = tail = fence = new Node();
length = 0;
}
public:
int length;
Node *fence;
Node *tail;
LList(){init();}
bool append(int elem); //add element in the last
void setTail(Node *temp) { //reset the tail ,make it intersect
tail->next = temp;
}
int setEnd() {
while(tail->next!=NULL){tail = tail->next;length++;}
return length;
}
};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -