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

📄 stdafx.h

📁 实现了无线传感器网络中的一个路由协议算法。
💻 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 + -