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

📄 dll.cpp

📁 一个利用生成的动态链接文件
💻 CPP
字号:
// DLL.cpp : Defines the initialization routines for the DLL.
//

#include "stdafx.h"
#include "DLL.h"
#include "math.h"

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

#define PI 3.14159265


BEGIN_MESSAGE_MAP(CDLLApp, CWinApp)
	//{{AFX_MSG_MAP(CDLLApp)
		// 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()

/////////////////////////////////////////////////////////////////////////////
// CDLLApp construction

CDLLApp::CDLLApp()
{
}

/////////////////////////////////////////////////////////////////////////////
// The one and only CDLLApp object

CDLLApp theApp;
extern "C" _declspec(dllexport) int comm(int n,int k)
{
	AFX_MANAGE_STATE(AfxGetStaticModuleState());
	

	if(k > n)
		return 0;
	else if(n == k || k == 0)
		return 1;
	else     
	return comm(n-1,k) + comm(n-1,k-1);
   

}

⌨️ 快捷键说明

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