commoncal.h
来自「用C++基于SQL SERVER使用存储过程」· C头文件 代码 · 共 60 行
H
60 行
// CommonCal.h: interface for the CommonCal class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_COMMONCAL_H__CE3E69F5_4D0B_4D61_A351_356C7940D5C8__INCLUDED_)
#define AFX_COMMONCAL_H__CE3E69F5_4D0B_4D61_A351_356C7940D5C8__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "afx.h"
class CommonCal
{
public:
double m_dblInputVal;
CString m_strOutputVal;
int m_intInputDot;
int m_intKeepInt;
int m_intKeepDot;
bool RainValProc();
bool WaterValProc();
CString FlowValProc(double);
//struct tm DateValProc(CString);
CString TimeToStr(struct tm);
struct tm StrToTime(CString);
int TimeCompare(struct tm,struct tm);
bool TimeAddSpan(struct tm *,int,int,int,int,int,int);
bool TimeSubSpan(struct tm *,int,int,int,int,int,int);
bool IsLeapYear(struct tm *);
int GetMonthEndDay(struct tm *);
public:
//char strInDate[14];
//char strOutDate[5];
CString m_strInputTime;
CString m_strOutputTime;
int m_intDay;
int m_intMonth;
int m_intHour;
int m_intMinute;
float m_fltTime;
float m_fltInterval;
bool TimeValProc();
public:
//int intStartTime;
//int intEndTime;
//int intInterval;
//bool IntervalCalProc();
public:
CommonCal();
virtual ~CommonCal();
};
#endif // !defined(AFX_COMMONCAL_H__CE3E69F5_4D0B_4D61_A351_356C7940D5C8__INCLUDED_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?