• <bdo id='D4XAv'></bdo><ul id='D4XAv'></ul>

    <i id='D4XAv'><tr id='D4XAv'><dt id='D4XAv'><q id='D4XAv'><span id='D4XAv'><b id='D4XAv'><form id='D4XAv'><ins id='D4XAv'></ins><ul id='D4XAv'></ul><sub id='D4XAv'></sub></form><legend id='D4XAv'></legend><bdo id='D4XAv'><pre id='D4XAv'><center id='D4XAv'></center></pre></bdo></b><th id='D4XAv'></th></span></q></dt></tr></i><div id='D4XAv'><tfoot id='D4XAv'></tfoot><dl id='D4XAv'><fieldset id='D4XAv'></fieldset></dl></div>
  • <small id='D4XAv'></small><noframes id='D4XAv'>

      1. <tfoot id='D4XAv'></tfoot>
      2. <legend id='D4XAv'><style id='D4XAv'><dir id='D4XAv'><q id='D4XAv'></q></dir></style></legend>

        二维数组与数组数组

        时间:2023-09-15

          <tbody id='EvJ3s'></tbody>
      3. <small id='EvJ3s'></small><noframes id='EvJ3s'>

        <legend id='EvJ3s'><style id='EvJ3s'><dir id='EvJ3s'><q id='EvJ3s'></q></dir></style></legend>
            <i id='EvJ3s'><tr id='EvJ3s'><dt id='EvJ3s'><q id='EvJ3s'><span id='EvJ3s'><b id='EvJ3s'><form id='EvJ3s'><ins id='EvJ3s'></ins><ul id='EvJ3s'></ul><sub id='EvJ3s'></sub></form><legend id='EvJ3s'></legend><bdo id='EvJ3s'><pre id='EvJ3s'><center id='EvJ3s'></center></pre></bdo></b><th id='EvJ3s'></th></span></q></dt></tr></i><div id='EvJ3s'><tfoot id='EvJ3s'></tfoot><dl id='EvJ3s'><fieldset id='EvJ3s'></fieldset></dl></div>
            1. <tfoot id='EvJ3s'></tfoot>
                <bdo id='EvJ3s'></bdo><ul id='EvJ3s'></ul>

                  本文介绍了二维数组与数组数组的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  二维数组和数组数组有什么区别?

                  What is the difference between a 2D array and an array of arrays?

                  我已阅读评论,例如 @Dave's,这似乎区分了两者.

                  I have read comments, such as @Dave's, that seem to differentiate between the two.

                  如果他使用二维数组或指向数组的类型,而不是数组的数组,这会中断.– 戴夫

                  This breaks if he's using 2d arrays, or pointer-to-array types, rather than an array of arrays. – Dave

                  我一直认为两者都指的是:

                  I always thought that both referred to:

                  int arr_arr[][];
                  

                  <小时>

                  @FutureReader,您可能希望看到 如何在 C++ 中使用数组?


                  @FutureReader, you may wish to see How do I use arrays in C++?

                  推荐答案

                  二维数组定义为数组的数组.

                  A 2 dimensional array is by definition an array of arrays.

                  Dave 所说的是,在这种情况下,像这样的二维数组定义之间存在不同的语义:

                  What Dave was saying is that in that context, there are different semantics between the definition of a 2D array like this:

                  int x[][];
                  

                  这个:

                  int *x[];
                  

                  或者这个:

                  int **x;
                  

                  这篇关于二维数组与数组数组的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:初始化 C/C++ 多维数组时省略大小 下一篇:使用 C++ 的二维数组

                  相关文章

                  最新文章

                    <bdo id='yOH2r'></bdo><ul id='yOH2r'></ul>

                    <tfoot id='yOH2r'></tfoot>

                      <i id='yOH2r'><tr id='yOH2r'><dt id='yOH2r'><q id='yOH2r'><span id='yOH2r'><b id='yOH2r'><form id='yOH2r'><ins id='yOH2r'></ins><ul id='yOH2r'></ul><sub id='yOH2r'></sub></form><legend id='yOH2r'></legend><bdo id='yOH2r'><pre id='yOH2r'><center id='yOH2r'></center></pre></bdo></b><th id='yOH2r'></th></span></q></dt></tr></i><div id='yOH2r'><tfoot id='yOH2r'></tfoot><dl id='yOH2r'><fieldset id='yOH2r'></fieldset></dl></div>
                      <legend id='yOH2r'><style id='yOH2r'><dir id='yOH2r'><q id='yOH2r'></q></dir></style></legend>
                    1. <small id='yOH2r'></small><noframes id='yOH2r'>