0
点赞
收藏
分享

微信扫一扫

C++二位数组指针

兮城 2022-03-31 阅读 36
c++
    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 条评论