Iterate through 2 dimensional array c#

后端 未结 7 1509
悲&欢浪女
悲&欢浪女 2020-12-03 16:37
for(int k=0;k <= odds.GetLength(-1);k++)

The above line of code is supposed to iterate through a two dimensional array of type Double but keeps

相关标签:
7条回答
  • 2020-12-03 17:36

    GetLength is zero-based. Try calling GetLength(0).

    0 讨论(0)
提交回复
热议问题