cstytime.h
来自「特别好玩有启发的东西」· C头文件 代码 · 共 20 行
H
20 行
#ifndef AFX_CSTYTIME_H__E17D0B8C_16DB_4008_ABFF_1FAE2CE4D270__INCLUDED_
#define AFX_CSTYTIME_H__E17D0B8C_16DB_4008_ABFF_1FAE2CE4D270__INCLUDED_
#include <string>
#include <bitset>
using namespace std;
//filter the time of net-user.
struct CStyTime
{
std::bitset<24*7> tTime;//week-day-hour
bool IsHere (const struct tm & t) const;
bool IsHere (const int hour, const int minute) const;
void Clear ();
void SetHour (const int hour, bool value);
int SetTimeSeg(std::string strTime);
};
#endif //AFX_CSTYTIME_H__E17D0B8C_16DB_4008_ABFF_1FAE2CE4D270__INCLUDED_
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?