a nonstatic member reference must be relative to a specific object, error code E0245

后端 未结 0 753
南旧
南旧 2020-12-22 05:01
class Test
{
private:
    int x = 100 * 100;
    bool booleans[x];
};

Why can I not use x to indicate the size of the array?

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题