Home > Net >  2 d array
2 d array

Time:09-22

Please comment: two-dimensional array can also how to do? Said is what meaning, thank you for your glad

CodePudding user response:


This has nothing to do with two dimensional array,
You put the array [0] [randNum] as I, that is i++,
Each to get a new random number plus 1,
RandNum=5 for the first time, for example, when the array [0] [5] + + is equal to 1,
Next time meet randNum=5, then array [0] [5] + + equal to 2.

CodePudding user response:

Well well, see, I also silly, definition is type int, already very clear,

CodePudding user response:

This usage is too strange flower, still is not good, this is in fact: I=I + 1, which is the value of an array element I + 1.

CodePudding user response:

What a beautiful concise code... Basic operator + + don't in front of the east on the 1... ... Use English, why not,,,

CodePudding user response:

Upstairs has been said, is the array [0] [5]=array [0] [5] + 1;
  •  Tags:  
  • C#
  • Related