How to iterate through columns [rows] of a multi dimensional array

后端 未结 4 1548
庸人自扰
庸人自扰 2020-12-05 21:07

I am using a multi-dimensional array to store the total amount of product sold (products range 1 to 5) by a particular salesperson (1 to 4 salespersons).

T arranged

4条回答
  •  生来不讨喜
    2020-12-05 22:01

    First off, don't use all your code if it's not needed. You only need the declaration and maybe one for-loop.

    Loop through columns:

    for(int i=0; i

提交回复
热议问题