标签:names stream using turn get namespace string ace 单例模式
#include <iostream>
#include <string>
#include <vector>
#include <map>
using namespace std;
class singlgSys
{
private:
static singlgSys * pSingle;
singlgSys(){}
public:
static singlgSys * getInstance()
{
if(NULL == pSingle)
{
pSingle = new singlgSys();
return pSingle;
}
return pSingle;
}
};
标签:names stream using turn get namespace string ace 单例模式
原文地址:http://www.cnblogs.com/taotaoju/p/6003289.html