?? stdafx.h
字號:
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//
#if !defined(AFX_STDAFX_H__EFFF1EA8_89FE_4A98_93C4_582F4AE1C321__INCLUDED_)
#define AFX_STDAFX_H__EFFF1EA8_89FE_4A98_93C4_582F4AE1C321__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions
#include <afxdisp.h> // MFC Automation classes
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT
#include <mmsystem.h>
#include <afxcview.h>
#define RATOS 2.5
#define PAI 3.1415926535897932384626433832795
#define CONTINUE 0
#define ONCE 1
#define COMMAND 1
#define ORIGIN 0
#define RADIS 18
#define GRAPH_WIDTH 500
#define GRAPH_HEIGHT 150
#define DEAD 3
#define RELAY 2
#define SEND 1
#define RECEIVE 0
#define BONDERY ((int)(ceil(g_Radium / RADIS)))
#define TRACEMSG(pMsg) \
TRACE( "Msg:((%d,%d),(%d,%d),%d,data)\n",\
pMsg->Destination.x,\
pMsg->Destination.y,\
pMsg->Origination.x,\
pMsg->Origination.y,\
pMsg->Type)
#define DELETE_OBJECT(pObject); \
{ delete pObject;\
pObject = NULL;\
}
#define DYNAMIC_2D_ARRAY(matrix,m,n,TYPE); \
{ matrix = new TYPE*[m];\
for(int i = 0; i < m; i++)\
matrix[i] = new TYPE[n];\
}
#define DYNAMIC_2D_ARRAY_DELETE(matrix,m,n);\
{ for(int i = 0; i < m; i++)\
delete [] matrix[i];\
delete [] matrix;\
matrix = 0;\
}
#include <Math.h>
#pragma comment( lib , "Winmm.lib" )
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_STDAFX_H__EFFF1EA8_89FE_4A98_93C4_582F4AE1C321__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -