draw.cpp

来自「项目的研究内容是对硅微谐振式加速度计的数据采集电路开展研究工作。硅微谐振式加速度」· C++ 代码 · 共 40 行

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

#include "stdafx.h"
#include "item4.h"
#include "DRAW.h"

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

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

DRAW::DRAW()
{

}

DRAW::~DRAW()
{

}

void DRAW::SetData(long x,float y)
{
	this->mXY.x=(int)(x+50);
	this->mXY.y=(int)((20000-y)*120/2500+150);
}


POINT DRAW::GetPoint()
{
	return this->mXY;
}

⌨️ 快捷键说明

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