Quote Originally Posted by fxtdr79 View Post
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:

Code:
points[0].x = 0.0;
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.
Hi Please post your complete code. I had a similar problem a few months ago (I'm a C student also) and found that I was initializing my pointers in the wrong place.

I don't know if that is the problem here, but I did learn one thing: it's important to post
your entire code. :-)