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

📄 myinterface.cpp

📁 这是书上的代码
💻 CPP
字号:
// MyInterface.cpp: implementation of the CMyInterface class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "MyInterface.h"

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

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CMyInterface::CMyInterface()
{
	m_pMyClass = new CMyClass;
}

CMyInterface::~CMyInterface()
{
	delete m_pMyClass;
}
//--------------------调用CMyClass中的FunctionA函数-----------------
CString CMyInterface::FunctionA()
{
	return m_pMyClass->FunctionA();
}
//--------------------调用CMyClass中的FunctionB函数-----------------
CString CMyInterface::FunctionB()
{
	return m_pMyClass->FunctionB();
}
//--------------------得到CMyClass中的str变量-----------------------
CString CMyInterface::GetString()
{
	return m_pMyClass->str1;
}
//--------------------------The End---------------------------------

⌨️ 快捷键说明

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