如何初始化常量整型数组类成员?我认为在某些情况下,传统的数组并不是最好的选择,那么我应该使用什么来代替它呢?
class GameInstance{
enum Signs{
NUM_SIGNS = 3;
};
const int gameRulesTable[NUM_SIGNS][NUM_SIGNS]; // how to init it?
public:
explicit GameInstance():gameRulesTable(){};
};