Array declaration warning
Paul via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Jun 3 13:28:55 PDT 2015
Ooops, this is what I meant to post:
struct CoOrd
{
int x, y;
}
CoOrd[][NumPaths]pathList;
I append values like so...
pathList[][n] ~= CoOrd(cX, cY);
But to get the expected values, I need to access them like this
example for last x co-ord of last item:
int xx = pathList[NumPaths-1][$ - 1].x;
Doesn't seem right (but it works)...
More information about the Digitalmars-d-learn
mailing list