: error C2078: too many initializers
来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/07/18 16:21:18
: error C2078: too many initializers
#include
int fun(int (*s)[4],int n, int k)
{ int m,i;
m=s[0][k];
for(i=1;im) m=s[i][k];
return m;
}
void main()
{
int a[4][4]={{1,2,3,4),{11,12,13,14},{2l,22,23,24},{31,32,33,34}};
printf("%d\n", fun(a,4,0));
}
#include
int fun(int (*s)[4],int n, int k)
{ int m,i;
m=s[0][k];
for(i=1;im) m=s[i][k];
return m;
}
void main()
{
int a[4][4]={{1,2,3,4),{11,12,13,14},{2l,22,23,24},{31,32,33,34}};
printf("%d\n", fun(a,4,0));
}
仔细看下这行int a[4][4]={{1,2,3,4},{11,12,13,14},{2l,22,23,24},{31,32,33,34}};
你写的地方,4后面用的是小括号,改成大括号就行了
你写的地方,4后面用的是小括号,改成大括号就行了
C++报错error C2078:too many initializers
Error!: SQLSTATE[00000] [1040] Too many connections是什么意思
Xilinx ISE中的问题:ERROR:Pack:2310 - Too many comps of type "RAM
maple解方程出错Error,invalid input:too many and/or wrong type of
too many
_ tired?too many too much much too many too
much too too much many too too many
much too ,too much ,many too,too many辨析一下
too much too many much too many too
Too many too much much too与 many too
eat too many sweets too
Too many people cause too many t------.