This commit is contained in:
aixianling
2025-01-09 17:45:40 +08:00
commit 5c9f1dae4a
3482 changed files with 1146531 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
#pragma once
/************************************************************************/
/* 单例模式
/*
/*
/************************************************************************/
class CSingleton
{
private:
static CSingleton* m_pInstance;
public:
static CSingleton * GetInstance ()
{
if (m_pInstance == 0)
{
m_pInstance = new CSingleton();
}
return m_pInstance;
}
private:
CSingleton();
};
//CSingleton* CSingleton::m_pInstance= 0;