shitocedlg.cpp
来自「这个软件采用的是VC++语言」· C++ 代码 · 共 65 行
CPP
65 行
// shitoceDlg.cpp : implementation file
//
#include "stdafx.h"
#include "Digihelper.h"
#include "shitoceDlg.h"
#include "math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CshitoceDlg dialog
CshitoceDlg::CshitoceDlg(CWnd* pParent /*=NULL*/)
: CDialog(CshitoceDlg::IDD, pParent)
{
//{{AFX_DATA_INIT(CshitoceDlg)
m_outa = 0.0;
m_outb = 0.0;
m_shitocem = 0.0;
m_shitocex = 0.0;
m_shitocexp = 0.0;
m_shitocey = 0.0;
m_shitoceyp = 0.0;
//}}AFX_DATA_INIT
}
void CshitoceDlg::DoDataExchange(CDataExchange* pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CshitoceDlg)
DDX_Text(pDX, IDC_outa, m_outa);
DDX_Text(pDX, IDC_outb, m_outb);
DDX_Text(pDX, IDC_shitocem, m_shitocem);
DDX_Text(pDX, IDC_shitocex, m_shitocex);
DDX_Text(pDX, IDC_shitocexp, m_shitocexp);
DDX_Text(pDX, IDC_shitocey, m_shitocey);
DDX_Text(pDX, IDC_shitoceyp, m_shitoceyp);
//}}AFX_DATA_MAP
}
BEGIN_MESSAGE_MAP(CshitoceDlg, CDialog)
//{{AFX_MSG_MAP(CshitoceDlg)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CshitoceDlg message handlers
void CshitoceDlg::OnOK()
{
// TODO: Add extra validation here
UpdateData(TRUE);
m_outa=(m_shitocexp-m_shitocex)*cos(m_shitocem)+(m_shitoceyp-m_shitocey)*sin(m_shitocem);
m_outb=-(m_shitocexp-m_shitocex)*sin(m_shitocem)+(m_shitoceyp-m_shitocey)*cos(m_shitocem);
UpdateData(FALSE);
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?