当前位置:网站首页>/*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/

/*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/

2022-07-04 10:26:00 qq_ fifty-eight million seven hundred and thirty-six thousand t

#include<iostream>

using std::cout

int main(void)
{
    int ia[3][4] = {                 /* 3 elements, each element is an array of size*/
                    {0, 1, 2, 3} , /* initializers for row indexed by 0 */
                    {4, 5, 6, 7} , /* initializers for row indexed by 1 */
                    {8, 9, 10, 11}/* initializers for row indexed by 2 */
                    };
    for (int(*p)[4] = ia; p != ia + 3; ++p)
        for (int* p1 = *p; p1 != *p + 4; ++p1)
            cout << *p1 << endl;
    return 0;
}

原网站

版权声明
本文为[qq_ fifty-eight million seven hundred and thirty-six thousand t]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141419351962.html