Well basicly had some trouble with placing my teams like so: http://pastebin.com/ahgP04bU
So I asked someone for advice and he just gave me a tip. And he said it has something to do with arrays. Follwing that he sended me a this code…
string[,] clubs = new string[20,30];
clubs[0,1] = “spain”;
clubs[0,2] = etc;
What I don’t understand is those comma’s. And what does that [20,30] indicate?
And how does this help me place my teams in the way I want it (look on the pastebin link).
Or if you think you have a better link for me to help me out with arrays in datasets I would appreciate it.
best regards,
new string[20,30]creates a new multi-dimensional array. Where 20 indicates the array-width and 30 the array-height. Think of it like this:If you create an array with the width 5 and height 5, you are basically creating 5*5 “slots” for strings that you can set. You can access a specific slot by its coordinates.
This code:
Creates an array like this: