📄 cdatetime.h
字号:
#ifndef _CDATETIME_H_
#define _CDATETIME_H_
//日期时间类
class CDateTime
{
public:
static struct tm *NowDate();
void MyDate();
void MyTime();
string GetDateTime();
void SetYear(int _year);
void SetMonth(int _month);
void SetDay(int _day);
void SetHour(int _hour);
void SetMin(int _min);
void SetSecond(int _second);
bool GetYear();
bool GetMonth();
bool GetDay();
bool GetHour();
bool GetMin();
bool GetSecond();
static void DelayTime(int n);
private:
int year,month,day,hour,minute,second;
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -