graph.cpp

来自「电磁场的演示程序」· C++ 代码 · 共 50 行

CPP
50
字号
// Graph.cpp: implementation of the CGraph class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MicroWave.h"
#include "Graph.h"

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

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

CGraph::CGraph()
{

}

CGraph::~CGraph()
{

}

CGraph::CGraph(int Type, float value, COLORREF pen_color)
{
	this->Type=Type;
	this->value=value;
	this->pen_color=pen_color;

}
CGraph::CGraph(int Type,CPoint EndPoint,COLORREF pen_color)
{
	this->Type=Type;
	this->EndPoint=EndPoint;
	this->pen_color=pen_color;

}
CGraph::CGraph(int Type,CString str,CPoint pos,COLORREF pen_color)
{
	this->Type=Type;
	this->str=str;
	this->pos=pos;
	this->pen_color=pen_color;
}

⌨️ 快捷键说明

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