I have a data structure declared like this:
Then I created a pointer like this:Code:typedef struct { double x; double y; } xyPoints;
I can't seem to store anything in the x and y values. I'm try to do something like this:Code:xyPoints *points[30];
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.Code:points[0].x = 0.0;