cdatetime.h
来自「AA制消费管理系统(简易型) 实现账户信息」· C头文件 代码 · 共 30 行
H
30 行
#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 + =
减小字号Ctrl + -
显示快捷键?