Assign values to a set of array of structures
I'm trying to build a data structure of known size. Like this
Code:
struct operation_matrix{
float mtrx[16];
}operation[894];
I know all values, and I'm planning to use perl to write the assignments for all elements, but the way of doing so for a simple array does not work.
Code:
operation[0].mtrx[]{0.5,....last};
Is there a way of doing it this way?
I guess there must be a better way of dealing with this, but I'm starting with C ( used to program in fortran).
Thanks in advance!