📄 commondata.cpp
字号:
// CommonData.cpp: implementation of the CCommonData class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Work.h"
#include "CommonData.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CString CCommonData::UserName;
CString CCommonData::userNumber;
CString CCommonData::UserPassword;
bool CCommonData::bigDate(CTime time1,CTime time2)
{
CString year1,year2,month1,month2,day1,day2;
year1.Format("%d",time1.GetYear());year2.Format("%d",time2.GetYear());
month1.Format("%d",time1.GetMonth());month2.Format("%d",time2.GetMonth());
day1.Format("%d",time1.GetDay());day2.Format("%d",time2.GetDay());
if(atoi(year1)>atoi(year2))
{
return true;
}
if(atoi(month1)>atoi(month2))
{
return true;
}
if(atoi(day1)>atoi(day2))
{
return true;
}
return false;
}
CCommonData::CCommonData()
{
}
CCommonData::~CCommonData()
{
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -