#include <iostream>
int main()
{
int ia[ 2 ][ 4 ] = { { 1, 3, 5, 7 }, { 2, 4, 6, 8 } };
int** ip = ia; /* どうして代入に失敗? */
for ( int i = 0 ; i < 2 ; ++i )
{
for ( int j = 0 ; j < 4 ; ++j )
{
std::cout << ip[ i ][ j ] << ' ';
}
std::cout << std::endl;
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKaW50IG1haW4oKQp7CglpbnQgaWFbIDIgXVsgNCBdID0geyB7IDEsIDMsIDUsIDcgfSwgeyAyLCA0LCA2LCA4IH0gfTsKCWludCoqIGlwID0gaWE7IC8qIOOBqeOBhuOBl+OBpuS7o+WFpeOBq+WkseaVl++8nyAqLwoKCWZvciAoIGludCBpID0gMCA7IGkgPCAyIDsgKytpICkKCXsKCQlmb3IgKCBpbnQgaiA9IDAgOyBqIDwgNCA7ICsraiApCgkJewoJCQlzdGQ6OmNvdXQgPDwgaXBbIGkgXVsgaiBdIDw8ICcgJzsKCQl9CgkJc3RkOjpjb3V0IDw8IHN0ZDo6ZW5kbDsKCX0KCglyZXR1cm4gMDsKfQo=