Explicitly assigning values to a 2D Array?

后端 未结 6 668
遇见更好的自我
遇见更好的自我 2020-12-11 00:58

I\'ve never done this before and can\'t find the answer. This may not be the correct data type to use for this, but I just want to assign an int, then another int without a

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-11 01:37

    contents[0][0] points to a single int, not an array of ints. You can only assign a single value to any particular index into the array.

提交回复
热议问题