二维数组的问题
void Test(int len, short arr[][2])
{
short* st[2]; //怎么声明?
st = arr;
for(int i=0; i <len; ++i)
{
cout < <st[i][0] < < "\t " < <st[i][1] < <endl; //访问越界
}
}
代码中st如何声明才可以?
[解决办法]
short (*st)[2];