data.h

来自「This is my assignment for my tutor s Cla」· C头文件 代码 · 共 44 行

H
44
字号
// Data.h: interface for the CData class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_DATA_H__377EB193_BCCC_4F69_BDFD_095BA7905583__INCLUDED_)
#define AFX_DATA_H__377EB193_BCCC_4F69_BDFD_095BA7905583__INCLUDED_

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

class CData : public CDocument  
{
public:
	
	CData();
	CData(CData &data);

	virtual ~CData();
	void  SetName(CString name){this->m_Name=name;}
	void  SetA(double a){ this->m_InAngle=a;}
    void  SetN(double n){ this->m_MatterN=n;}
	void  SetK(double k){ this->m_MatterK=k;}
	void  SetM(double thickness){this->m_Mthick=thickness;}
	void  SetUse(bool use){ this->m_Use=use;}
	CString GetName(){return this->m_Name;}
	double GetA(){return this->m_InAngle;}
	double GetN(){return this->m_MatterN;}
	double GetK(){return this->m_MatterK;}
	double GetM(){return this->m_Mthick;}
	bool  GetUse(){return this->m_Use;}
private:
	CString m_Name;
	double m_InAngle;      
	double m_MatterN;
	double m_MatterK;
	double m_Mthick;
	bool  m_Use;


};

#endif // !defined(AFX_DATA_H__377EB193_BCCC_4F69_BDFD_095BA7905583__INCLUDED_)

⌨️ 快捷键说明

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