On Friday, 16 October 2015 at 02:46:03 UTC, Rikki Cattermole
wrote:
On 16/10/15 3:39 PM, VlasovRoman wrote:
enum int m = 10;
enum int n = 5;
ubyte[m][n] array;
for(int x = 0; x < m; x++) {
for(int y = 0; y < n; y++) {
array[x][y] = cast(ubyte)(x + y);
}
}
First on the left(declaration), last on the right(index/assign).
void main()
{
enum int m = 10;
enum int n = 5;
ubyte[m][n] array;
for(int x = 0; x < m; x++) {
for(int y = 0; y < n; y++) {
array[y][x] = cast(ubyte)(x + y);
}
}
}
Oh, thank you. Some strange solution.