int a[][2]={1,{3,4},5};
书上说这个是错的 请问错在哪啊。。
我用codeBlocks编译之后 报错
error: braces around scalar initializer for type 'int'|
题主可以写成这样:
int a [][2] = {
{1},
{3, 4},
{6}
}
int a[][2]={{3},{3,4},{6}}
int a[][2]={1,{3,4},5};
书上说这个是错的 请问错在哪啊。。
我用codeBlocks编译之后 报错
error: braces around scalar initializer for type 'int'|
题主可以写成这样:
int a [][2] = {
{1},
{3, 4},
{6}
}
int a[][2]={{3},{3,4},{6}}