ctest.cpp

来自「SYMBIAN中经典丛书何伟的实例代码」· C++ 代码 · 共 37 行

CPP
37
字号
// CTest.cpp
//
// Author: LiuLiping
//
// version: 1.0
// Date: 2006-1-19
//
// This Example print the member-variable's value.
// The Example define three type of member-variables such as TText,TInt and TReal.
// In member-function use a TAny type 
// Include cheif content of MemoryManagement 

#include "CommonFramework.h"
#include "CMemoryManagement.h"


//////////////////////////////////////////////////////////////////////////////
//
// Do the example
//
//////////////////////////////////////////////////////////////////////////////

void TestMemoryManangement()
{

	CMemoryManagement* test = CMemoryManagement::NewL(console,'a',3,5.5);
	CleanupStack::PushL(test);
	test->Print();
	CleanupStack::PopAndDestroy(test);

}

LOCAL_C void doExampleL()
{
	TestMemoryManangement();
}

⌨️ 快捷键说明

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