I have following struct
typedef struct {
double x;
double y;
} Point;
I want to create an array of it with defined size and clear it use this code:
Point *temppoints = new Point[pointCounts];
delete []temppoints;
However Xcode won't compile because of the new
and delete
.
Any advise?