void fuction(int[][])
{};
int main()
{
int i,j;
const int N=5;
int a[N][N];
for(i=0;i<N;i++)
{
for(j=0;j<N;j++)
a[i][j]=N*i+j+1;
return 0;
}
}
void fuction(a)
{};
我就是想输入一个a[5][5]的数组,并把这个数组保存在fuction开辟的内存空间上
这是错误提示:C:\Documents and Settings\Administrator\fg.cpp(2) : error C2087: '<Unknown>' : missing subscript
C:\Documents and Settings\Administrator\fg.cpp(16) : error C2065: 'a' : undeclared identifier
C:\Documents and Settings\Administrator\fg.cpp(17) : error C2448: '<Unknown>' : function-style initializer appears to be a function definition