iteminfo.cpp

来自「Recite(一个辅助英语学习软件源码) 该程序的UI部分使用了WTL7.5。」· C++ 代码 · 共 19 行

CPP
19
字号
//PK 2007/02/26
//PK CItemInfo

#include "ItemInfo.h"
#include "configurations.h"

void CItemInfo::update() 
{	//PK 2007/02/26
	if (0 == _times) _last_access = day_clock::local_day();
	else _last_access = _last_access + days(g_config.get_interval(_times));
	++_times;
}

date CItemInfo::next_day() 
{	//PK 2007/02/26
	if (_last_access.is_not_a_date()) return day_clock::local_day();
	return _last_access + days(g_config.get_interval(_times));
}

⌨️ 快捷键说明

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