📄 clock.h
字号:
#ifndef __CLOCK_H__#define __CLOCK_H__class C_Clock {public: C_Clock(); virtual ~C_Clock(); public: char* Get(const char* sz, int nLength, bool bPlus, int hh2, int mi2); private: void IncMin( int min_inc ); void IncHour( int hour_inc ); void DecMin( int min_inc ); void DecHour( int hour_inc ); void IncDay( int day_inc ); void DecDay( int day_inc ); void IncMonth( int mon_inc =1 ); void DecMonth( int mon_inc = 1); void IncYear( int year_inc ); void DecYear( int year_inc ); void IncSec( int sec_inc ); void DecSec( int sec_inc ); int isLeapYear() const; int DivisibleUnits( int x, int y, int z ) const; int LeapYearsBetween( int x, int y ) const; int GetDaysInMonth() const; int GetDaysInMonth( int i ) const; private: int sec,minute,hour; int mday,mon,year; int _minute,_hour; char m_nFormatString[20];};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -