Hey /prog/ I asked /g/ this but they don't seem to know much about programming
Anyways
I'm learning the basics of C# and I'm wondering wtf this means:
byte[, ,][] localchunks = new byte[chunksizex / chunksize, chunksizey / chunksize, chunksizez / chunksize][];
Specifically the "byte[, ,]" and the "byte[chunksizex / chunksize, chunksizey / chunksize, chunksizez / chunksize]"
wtf is with the commas and forward slashes in the "[]" ??
>>1 I'm learning the basics of C#
No, you are not. Go and learn the basics of C# by reading a book.
Name:
Anonymous2011-02-24 5:43
byte[,,][] declares a 3 dimensional array of arrays and the slashes are division operators.
The line creates a 3 dimensional array with the first dimension of size (chunksizex / chunksize) the second with (chunksizey / chunksize) and the third with (chunksizez / chunksize).
Name:
Anonymous2011-02-24 5:47
>>2
I have a 1.3k page C# book right next to me without a single page on what I've described. I also Googled and couldn't find anything.