In anycase, what is the correct notation for indexing?x = new int[][](width, height) and x[height][width] or x[width][height]?
It's x[width][height], but because indexing is 0-based, largest valid indexes are
x[width-1][height-1].
albert-j via Digitalmars-d-learn Sun, 22 Jan 2017 01:36:26 -0800
In anycase, what is the correct notation for indexing?x = new int[][](width, height) and x[height][width] or x[width][height]?
It's x[width][height], but because indexing is 0-based, largest valid indexes are
x[width-1][height-1].