How to "typedef" a matrix in C -
While defining new data types in C, anyone can
typedef Double BYTE;
So it is possible to do later
BYTE length;
etc.
I would like to do something like this
typedef double [30] [30] [10] matrix;
So much later I do
Macmatics AA [10];
So I have 10 matrix types of matrix, and I can access them through AA [0], AA [1], etc.
Anyway, doing this with GNU, I get an error like the C compiler
error: '[' token
There is a possibility of unauthorized-IDs expected before or how can I achieve my purpose?
Thanks
Follow the idea:
typed double double matrix [30] [30] [10];
Comments
Post a Comment