可以用函数返回一个数组吗?
int trsmat(int a[][5]){int b[5][1];
int i;
int j;
for(i=0;i<1;i++)
for(j=0;j<5;j++)
b[j][i]=a[i][j];
return b;
}这个函数对吗?
编译后的错误如下,给指点一下吧,谢谢 啊!
error C2440: 'return' : cannot convert from 'int [5][1]' to 'int'
2006-05-22 12:53