acl/lib_acl_cpp/samples/final_class/final_class.cpp

41 lines
622 B
C++
Raw Normal View History

2014-11-19 00:25:21 +08:00
// final_class.cpp : <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>̨Ӧ<CCA8>ó<EFBFBD><C3B3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڵ㡣
//
#include "stdafx.h"
#include <stdio.h>
#include "acl_cpp/stdlib/final_tpl.hpp"
//#include "lib_acl.hpp"
class CMyFinalClass : public acl::final_tpl<CMyFinalClass>
{
public:
CMyFinalClass(int n) : dummy_(n) {}
~CMyFinalClass() {}
void Test()
{
printf("hello, I'm the final class\n");
}
protected:
private:
int dummy_;
};
class CMyClass //: CMyFinalClass
{
public:
CMyClass() {}
~CMyClass() {}
};
int main(void)
{
CMyFinalClass m(1);
m.Test();
printf(">>enter any key to exit ...\n");
getchar();
return 0;
}