⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 commoncal.h

📁 用C++基于SQL SERVER使用存储过程
💻 H
字号:
// 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -