6.5 Multidimensional Arrays

2017-08-26  本文已影响11人  Closears

原完整教程链接: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
};
上一篇下一篇

猜你喜欢

热点阅读