📄 list.cpp
字号:
// list.cpp: implementation of the list class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "list.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
list::list()
{
hand=NULL;
cur=NULL;
}
list::~list()
{
connection *p=hand;
while(p!=NULL){
hand=hand->next;
delete p;
p=hand;
}
}
void list::insert(connection *item)
{
if(hand==NULL){
hand=item;
cur=item;
}
else{
cur->next=item;
cur=item;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -