varvalue.cpp

来自「一个公式解析程序」· C++ 代码 · 共 40 行

CPP
40
字号
// VarValue.cpp: implementation of the CNumericValue class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "expresion.h"
#include "VarValue.h"

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

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

CNumericValue::CNumericValue()
{

}

CNumericValue::~CNumericValue()
{

}

double CNumericValue::GetValue()
{
	return *((double*)m_value);
}

void CNumericValue::SetValue(double value)
{
	double *val =  new double;
	*val = value;
	CValue::SetValue(val);
}

⌨️ 快捷键说明

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