defining array of structs
I want to define array of structs giving it the values.
for example:
1 2 3 4 5
|
struct foo{
int x,y;
};
foo foos[5]={some values here};
|
Is this declaration possible?
1 2 3 4 5
|
foo foos[5] = {
{x0,y0},
{x1,y1},
...
};
|
Topic archived. No new replies allowed.