64,649
社区成员
发帖
与我相关
我的任务
分享
const int AAA::i=1;
const short int AAA::Table[8][8]={0};
const map<char,int> AAA::testmap;
class AAA //:static_constructable<OperatorRelationship>//单例模式
{
private:
const static short int Table[8][8] = { ... };
const static map<char,int> testmap = map<char,int>();
const static int i = 0;
public:
AAA();
}
class AAA
{
private:
const static short int Table[8][8];
const static map<char,int> testmap;
const static int i;
public:
static std::map<char,int> CreateMap()
{
std::map<char,int>Map;
Map['A'] =1;
Map['B'] =2;
return Map;
}
public:
AAA();
};
const int AAA::i=1;
const short int AAA::Table[8][8]={0};
const map<char,int> AAA::testmap =AAA::CreateMap() ;
AAA::AAA()
{
}