⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commondata.cpp

📁 “图书馆书籍检索与借阅管理系统”软件旨在为在校学生提供一个功能全面、使用方便的个人数据库系统
💻 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 + -