Typedef pointer array access question
I have a data structure declared like this:
Code:
typedef struct {
double x;
double y;
} xyPoints;
Then I created a pointer like this:
Code:
xyPoints *points[30];
I can't seem to store anything in the x and y values. I'm try to do something like this:
No matter what combinations of * and & I try with points[0] I keep getting an error message when I try to compile. What is the proper syntax to gain access to the x and y values at a specific point in the array. Thanks.