📄 recordlist.cpp
字号:
// RecordList.cpp: implementation of the RecordList class.
//
//////////////////////////////////////////////////////////////////////
#include "RecordList.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
RecordList::RecordList()
{
}
void RecordList::clear()
{
iterator it=this->begin();
for(it=this->begin(); it!= this->end();it++)
delete *it; //释放指针指向的对象
list<Record*>::clear(); //释放指针
}
RecordList::~RecordList()
{
clear();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -