⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cetoshidlg.cpp

📁 这个软件采用的是VC++语言
💻 CPP
字号:
// cetoshiDlg.cpp : implementation file
//

#include "stdafx.h"
#include "Digihelper.h"
#include "cetoshiDlg.h"
#include "math.h"

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

/////////////////////////////////////////////////////////////////////////////
// CcetoshiDlg dialog


CcetoshiDlg::CcetoshiDlg(CWnd* pParent /*=NULL*/)
	: CDialog(CcetoshiDlg::IDD, pParent)
{
	//{{AFX_DATA_INIT(CcetoshiDlg)
	m_cetoshia = 0.0;
	m_cetoshib = 0.0;
	m_cetoshim = 0.0;
	m_cetoshix = 0.0;
	m_cetoshiy = 0.0;
	m_outxp = 0.0;
	m_outyp = 0.0;
	//}}AFX_DATA_INIT
}


void CcetoshiDlg::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CcetoshiDlg)
	DDX_Text(pDX, IDC_cetoshia, m_cetoshia);
	DDX_Text(pDX, IDC_cetoshib, m_cetoshib);
	DDX_Text(pDX, IDC_cetoshim, m_cetoshim);
	DDX_Text(pDX, IDC_cetoshix, m_cetoshix);
	DDX_Text(pDX, IDC_cetoshiy, m_cetoshiy);
	DDX_Text(pDX, IDC_outxp, m_outxp);
	DDX_Text(pDX, IDC_outyp, m_outyp);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CcetoshiDlg, CDialog)
	//{{AFX_MSG_MAP(CcetoshiDlg)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CcetoshiDlg message handlers

void CcetoshiDlg::OnOK() 
{
	// TODO: Add extra validation here
	UpdateData(TRUE);
	m_outxp=m_cetoshix+m_cetoshia*cos(m_cetoshim)-m_cetoshib*sin(m_cetoshim);
    m_outyp=m_cetoshiy+m_cetoshia*sin(m_cetoshim)+m_cetoshib*cos(m_cetoshim);
	UpdateData(FALSE);
}

⌨️ 快捷键说明

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