Index was outside the bounds of the array (C#)

后端 未结 3 1592
[愿得一人]
[愿得一人] 2020-12-12 07:28

I get \"Index was outside the bounds of the array\" on this line, what\'s wrong?

Kort[x, y] = Sort[x] + Valor[y] + \" \";    

Below is the

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-12 07:38

    Sort is an array 0..3, and Valor is 0..12. So you cannot use Sort[4] and Valor[13].

提交回复
热议问题