data.cpp

来自「This is my assignment for my tutor s Cla」· C++ 代码 · 共 45 行

CPP
45
字号
// Data.cpp: implementation of the CData class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "FilmDesign.h"
#include "Data.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CData::CData()
{
	this->m_InAngle=0;
	this->m_Name="A";
	this->m_MatterN=0.0;
	this->m_MatterK=0.0;
	this->m_Mthick=0.0;
	this->m_Use=false;

}

CData::~CData()
{

}


CData::CData(CData &data)
{
    this->SetA(data.GetA()) ;
	this->SetK(data.GetK());
	this->SetN (data.GetN());
	this->SetM(data.GetM());
	this->SetUse(data.GetUse());
}

⌨️ 快捷键说明

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