📄 os.h
字号:
/*****************************************
File: OS.h
date: 2001.7.25
Contains: OS utility functions. Memory allocation, time, etc.
*/
#ifndef _OS_H_LINYOUHAI
#define _OS_H_LINYOUHAI
#include <time.h>
#ifndef _WIN32
#include <sys/time.h>
#endif
#include <string.h>
class OS
{
public:
//call this before calling anything else
static void Initialize();
static char* GetSysDateTime(char* tmDateTime);
static char* GetSysDate(char* tmDate,char nFlag = 0);
static int GetYear();
static int GetMonth();
static int GetDay();
static void GetTime(struct tm* pSysTime);
};
#endif //#define _OS_H_LINYOUHAI
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -