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

📄 calculaterdlg.h

📁 用于计算气温的年平均值、月平均值、〉10度积温值
💻 H
字号:
// CalculaterDlg.h : header file
//

#if !defined(AFX_CALCULATERDLG_H__ABCA6373_23B7_4242_B635_A230AAABCAFB__INCLUDED_)
#define AFX_CALCULATERDLG_H__ABCA6373_23B7_4242_B635_A230AAABCAFB__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CCalculaterDlg dialog
#include "afxtempl.h"
class CCalculaterDlg : public CDialog
{
// Construction
public:
	void OnCalwateryear();
	void OnCaltemper10C();
	void OnCaltemperMonth();
	void OnBtnreadssd();
	void OnBtnreadpre();
	CCalculaterDlg(CWnd* pParent = NULL);	// standard constructor
	CString m_PathTemper, m_PathWater, m_PathSun; //三个数据文件路径
	CString m_PathOutput; //计算结果输出路径
	
	//站点
	CArray<int, int> m_Station; //气象站点编码
	CArray<double, double> m_Longi; //经度
	CArray<double, double> m_Lati; //纬度
	CArray<int, int> m_Elev; //高程
	//气温数据
	CArray<int, int> m_TemStation; //站点
	CArray<int, int> m_TemYear; //年
	CArray<int, int> m_TemMonth; //月
	CArray<int, int> m_TemDay; //日
	CArray<double, double> m_TemValue; //值
	//降水数据
	CArray<int, int> m_WatStation; //站点
	CArray<int, int> m_WatYear; //年
	CArray<int, int> m_WatMonth; //月
	CArray<int, int> m_WatDay; //日
	CArray<double, double> m_WatValue; //值
	//日照数据
	CArray<int, int> m_SunStation; //站点
	CArray<int, int> m_SunYear; //年
	CArray<int, int> m_SunMonth; //月
	CArray<int, int> m_SunDay; //日
	CArray<double, double> m_SunValue; //值

	//累年日平均气温
	CArray<double, double> m_ValueTemDay;
	//累年月平均气温 740*12
	CArray<double, double> m_ValueTemMonth;
	//≥10℃积温
	CArray<double, double> m_ValueTem10C;
	
	//累年月平均降水 740*12
	CArray<double, double> m_ValueWatMonth;
	//平均年降水量
	CArray<double, double> m_ValueWatYear;

	//平均年日照时数
	CArray<double, double> m_ValueSunYear;

// Dialog Data
	//{{AFX_DATA(CCalculaterDlg)
	enum { IDD = IDD_CALCULATER_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCalculaterDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CCalculaterDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnBtnreadstation();
	afx_msg void OnBtnpathtemper();
	afx_msg void OnBtnpathwater();
	afx_msg void OnBtnpathsun();
	afx_msg void OnBtnreadall();
	afx_msg void OnCaltemper();
	afx_msg void OnCalwater();
	afx_msg void OnCalsun();
	afx_msg void OnOutputpath();
	afx_msg void OnOutput();
	afx_msg void OnCalALL();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CALCULATERDLG_H__ABCA6373_23B7_4242_B635_A230AAABCAFB__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -