int a[3][3] = {{1,6,3},{2,5,6},{8,5,3}};
int *b = &a[0][0];
cout << *(b+3*(m-1)+(n-1);
m,n为输出a数组中m行n列的数字
C++二位数组指针
阅读 36
2022-03-31
int a[3][3] = {{1,6,3},{2,5,6},{8,5,3}};
int *b = &a[0][0];
cout << *(b+3*(m-1)+(n-1);
m,n为输出a数组中m行n列的数字
相关推荐
精彩评论(0)