hi, can someone help me !
i want to store ten sets of this structure with point x and y in a array.
can i do something like points[1].x = 1; points[1].y= 2
to store the values ?
typedef struct {
float x,y;
} Point;
Point points[10];
hi, can someone help me !
i want to store ten sets of this structure with point x and y in a array.
can i do something like points[1].x = 1; points[1].y= 2
to store the values ?
typedef struct {
float x,y;
} Point;
Point points[10];
Everything you are doing in your code IS valid and should work.
Cheers.
1 rule of the Samurai Code: if you have nothing to say, don't say anything at all!