multidimensional array

Joel via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Sep 27 21:24:19 PDT 2014


I'm trying to make a multidimensional array. I feel I've tried 
every thing. Is there a good guide explaining it?

struct Spot { bool dot; }
spots = new Spot[][](800,600);
	assert(spots[800-1][600-1].dot, "Out of bounds");


More information about the Digitalmars-d-learn mailing list