我有下一节课,想用 0 初始化 _operators 数组:
//Entity.h
class Entity
{
static const unsigned short operatorTypeColumn = 1;
static const unsigned short outputValueColumn = 4;
private:
mainDataType _operators[operatorsMaxCount][operatorsTableWidth];
}
//Entity.cpp. I thought this should work in C++ v11
Entity::Entity(void) : _operators[operatorsMaxCount][operatorsTableWidth]
{
}
我认为这是在 C++ v11 中出售的工作,但我得到了错误......我怎样才能用 0.. 用丑陋的方式初始化数组?我不想让它静态