: 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));}

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/01 11:31:16

: 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));}
: 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));
}

: 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));}
仔细看下这行int a[4][4]={{1,2,3,4},{11,12,13,14},{2l,22,23,24},{31,32,33,34}};
你写的地方,4后面用的是小括号,改成大括号就行了