📄 multargetdoc.cpp
字号:
// MulTargetDoc.cpp : implementation of the CMulTargetDoc class
//
#include "stdafx.h"
#include "MulTarget.h"
#include "MulTargetDoc.h"
#include "math.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////////////////////////////////////////////////////////////////////////////
// CMulTargetDoc
IMPLEMENT_DYNCREATE(CMulTargetDoc, CDocument)
BEGIN_MESSAGE_MAP(CMulTargetDoc, CDocument)
//{{AFX_MSG_MAP(CMulTargetDoc)
// NOTE - the ClassWizard will add and remove mapping macros here.
// DO NOT EDIT what you see in these blocks of generated code!
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
/////////////////////////////////////////////////////////////////////////////
// CMulTargetDoc construction/destruction
CMulTargetDoc::CMulTargetDoc()
{
// TODO: add one-time construction code here
}
CMulTargetDoc::~CMulTargetDoc()
{
}
BOOL CMulTargetDoc::OnNewDocument()
{
if (!CDocument::OnNewDocument())
return FALSE;
// TODO: add reinitialization code here
// (SDI documents will reuse this document)
return TRUE;
}
/////////////////////////////////////////////////////////////////////////////
// CMulTargetDoc serialization
void CMulTargetDoc::Serialize(CArchive& ar)
{
if (ar.IsStoring())
{
// TODO: add storing code here
}
else
{
// TODO: add loading code here
}
}
/////////////////////////////////////////////////////////////////////////////
// CMulTargetDoc diagnostics
#ifdef _DEBUG
void CMulTargetDoc::AssertValid() const
{
CDocument::AssertValid();
}
void CMulTargetDoc::Dump(CDumpContext& dc) const
{
CDocument::Dump(dc);
}
#endif //_DEBUG
/////////////////////////////////////////////////////////////////////////////
// CMulTargetDoc commands
void CMulTargetDoc::DeleteContents()
{
// TODO: Add your specialized code here and/or call the base class
int i,
j;
m_mb=-1;
m_mbhj=0;
for(i=0;i<100;i++)
{
for( j=0;j<1000;j++)
{
AirMB[i][j].hj=false;
AirMB[i][j].fs=false;
}
}
AirMB[0][0].mbph=531000;
// AirMB[0][0].fwj=45;
//AirMB[0][0].d=450000;
//AirMB[0][0].v=450;
//AirMB[0][0].hj=true;
m_deg11=0;
m_deg12=0;
m_pt1hxj=0; //平台1航向角
m_pt1hyj=0; //平台1横摇角
m_pt1ldpl=1; //平台1雷达频率
m_pt1ldzq=1; //平台1雷达周期
m_pt1ldzyjl=500000; //平台1雷达作用距离
m_pt1sd=45; //平台1航行速度
m_pt1zyj=0; //平台1纵摇角
m_pt1X0=0;
m_pt1Y0=0;
m_pt1Z0=0;
m_pt1X=0;
m_pt1Y=0;
m_pt1Z=0;
m_pt2X0=0;
m_pt2Y0=0;
m_pt2Z0=0;
m_pt3X0=0;
m_pt3Y0=0;
m_pt3Z0=0;
m_pt2X=0;
m_pt2Y=0;
m_pt2Z=0;
m_pt3X=0;
m_pt3Y=0;
m_pt3Z=0;
CDocument::DeleteContents();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -