couldn't create array in class with constant size

后端 未结 0 1526
庸人自扰
庸人自扰 2020-12-02 12:23

Gcc compiler error when try to create array in class with constant size. If do the same in main function it\'s ok.

const int n[] = { 4, 18 };
class C{
    int         


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