You are trying to allocate memory for a non-pointer type. You need to do one of the following:
Or...Code:Point *path = new Point[2]; // blah delete [] path;
Code:Point path[2]; //blah..
You are trying to allocate memory for a non-pointer type. You need to do one of the following:
Or...Code:Point *path = new Point[2]; // blah delete [] path;
Code:Point path[2]; //blah..