m*********a 发帖数: 3299 | 1 int ia[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; // array of size 3; each element
is an array of ints of size 4
int (&p)[3][4] = ia; // p references to an array of four ints
但是用point的花
int (*q)[4]=ia;//q point to an array of ints 4
都是可以实现*(*(p+1)+2) *(*(q+1)+q)的运算的
为啥不可以写int (&p)[][4] = ia, int (&p)[4] = ia? | m*********a 发帖数: 3299 | 2 或者 int &p=ia;
如果p是bound 到ia的化,难道不继承ia的运算? |
|