dllcall.cpp

来自「dll的一些学习资料」· C++ 代码 · 共 21 行

CPP
21
字号
// dllCall.cpp : 调用DLL中的类
// 作者 : 宋宝华 21cnbao@21cn.com

#include "stdafx.h"
#include <windows.h>
#include "..\circle.h"

#pragma comment(lib,"dllTest.lib");
 
int main(int argc, char* argv[])
{
	circle c;
	point p(2.0,2.0);
	c.SetCentre(p);
	c.SetRadius(1.0);
	printf("area:%f girth:%f",c.GetArea(),c.GetGirth());
	
	return 0;
}

⌨️ 快捷键说明

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