C/C++正确的构建单体类
现在代码中越来越多的使用单体类,而我们通常的编写代码的方式是:在A.h文件中: class CTest { public: static CTest* _ins; static CTest* Ins() }; 在A.cpp中: CTest* CTest::_ins = ...
共 1 篇相关文章
现在代码中越来越多的使用单体类,而我们通常的编写代码的方式是:在A.h文件中: class CTest { public: static CTest* _ins; static CTest* Ins() }; 在A.cpp中: CTest* CTest::_ins = ...