关于初始化数组
类定义如下:
class CCorpStructInterpolate
{
public:
__int64 getTag() const {return m_nTotalTag;}
private:
__int64 m_nTotalTag;
};
通过如下语句获得:
__int64 size=g_pTrigram->getTag();
double pdProb[size];
以上语句报错:error C2057: expected constant expression;
error C2466: cannot allocate an array of constant size 0
谢谢