static int ( &Init())[100]//尼玛这是函数啊?????
class Test
{
static const int (&m)[100];
static int ( &Init())[100]
{
static int a[100];
for( int i = 0 ; i <100 ; i ++)
{
a[i] = i*i;
}
return a;
}
};
const int (&Test::m)[100] = Test::Init();
[解决办法]
INT_ARRAY_100 代表 int[100] 类型