美文网首页
6.5 Multidimensional Arrays

6.5 Multidimensional Arrays

作者: Closears | 来源:发表于2017-08-26 16:47 被阅读11次

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

    相关文章

      网友评论

          本文标题:6.5 Multidimensional Arrays

          本文链接:https://www.haomeiwen.com/subject/rxfvdxtx.html