原完整教程链接:6.5 Multidimensional Arrays
1.
// To initialize a two-dimensional array, it is easiest to use nested
// braces, with each set of numbers representing a row:
int array[3][5] =
{
{ 1, 2, 3, 4, 5 }, // row 0
{ 6, 7, 8, 9, 10 }, // row 1
{ 11, 12, 13, 14, 15 } // row 2
};
网友评论